mirror of https://github.com/openclaw/openclaw.git
17 lines
479 B
TypeScript
17 lines
479 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);
|
|
}
|
|
|
|
export function resolveSlackUserToken(raw?: string): string | undefined {
|
|
return normalizeSlackToken(raw);
|
|
}
|