13 lines
367 B
TypeScript
13 lines
367 B
TypeScript
export function normalizeSlackToken(raw?: string): string | undefined {
|
|
const trimmed = raw?.trim();
|
|
return trimmed ? trimmed : undefined;
|
|
}
|
|
|
|
export function resolveSlackBotToken(raw?: string): string | undefined {
|
|
return normalizeSlackToken(raw);
|
|
}
|
|
|
|
export function resolveSlackAppToken(raw?: string): string | undefined {
|
|
return normalizeSlackToken(raw);
|
|
}
|