mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-04 14:43:52 -04:00
10 lines
314 B
TypeScript
10 lines
314 B
TypeScript
const RESERVED_SSO_PROVIDER_IDS = new Set(["credential"]);
|
|
|
|
function normalizeSsoProviderId(providerId: string): string {
|
|
return providerId.trim().toLowerCase();
|
|
}
|
|
|
|
export function isReservedSsoProviderId(providerId: string): boolean {
|
|
return RESERVED_SSO_PROVIDER_IDS.has(normalizeSsoProviderId(providerId));
|
|
}
|