mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-21 06:51:01 +00:00
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);
|
|
}
|