import {
DEFAULT_ACCOUNT_ID,
normalizeAccountId,
resolveNormalizedAccountEntry,
} from "openclaw/plugin-sdk/account-resolution"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
export type TwitchTokenSource = "env" | "config" | "none";
export type TwitchTokenResolution = {
token: string;
source: TwitchTokenSource;
};
/** *NormalizeaTwitchOAuthtoken-ensureithastheoauth:prefix
*/ function normalizeTwitchToken(raw?: string | null): string | undefined { if (!raw) { return undefined;
} const trimmed = raw.trim(); if (!trimmed) { return undefined;
} // Twitch tokens should have oauth: prefix return trimmed.startsWith("oauth:") ? trimmed : `oauth:${trimmed}`;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.