Files
BYW-VoiceHub/VoiceHub-main/app/utils/oauth.ts
T
Henry_Du 4ce4649aaf
Build VoiceHub FPK / build-fpk (push) Failing after 56m5s
Build and Push Docker Image / build-and-push (push) Canceled after 1h9m35s
初次提交
2026-09-06 08:19:02 +08:00

9 lines
276 B
TypeScript

export const getProviderDisplayName = (provider: string): string => {
const map: Record<string, string> = {
github: 'GitHub',
casdoor: 'Casdoor',
google: 'Google'
}
return map[provider.toLowerCase()] || provider.charAt(0).toUpperCase() + provider.slice(1)
}