25 lines
457 B
TypeScript
Executable File
25 lines
457 B
TypeScript
Executable File
import { oauthAuthorizeUrl } from '@/shared/lib/oauth-authorize-url'
|
|
|
|
export type OAuthProvider = {
|
|
id: 'yandex' | 'vk'
|
|
label: string
|
|
color: string
|
|
}
|
|
|
|
export const oauthProviders: OAuthProvider[] = [
|
|
{
|
|
id: 'yandex',
|
|
label: 'Яндекс ID',
|
|
color: '#FC3F1D',
|
|
},
|
|
{
|
|
id: 'vk',
|
|
label: 'VK ID',
|
|
color: '#0077FF',
|
|
},
|
|
]
|
|
|
|
export function getOAuthUrl(provider: 'yandex' | 'vk'): string {
|
|
return oauthAuthorizeUrl(provider)
|
|
}
|