@sanity/cli
Version:
Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets
10 lines (8 loc) • 314 B
text/typescript
import {type SanityUser} from '../types'
export function getProviderName(provider: SanityUser['provider']) {
if (provider === 'google') return 'Google'
if (provider === 'github') return 'GitHub'
if (provider === 'sanity') return 'Email'
if (provider.startsWith('saml-')) return 'SAML'
return provider
}