diff --git a/client/src/features/auth-oauth/lib/oauth-providers.ts b/client/src/features/auth-oauth/lib/oauth-providers.ts new file mode 100644 index 0000000..2d1a510 --- /dev/null +++ b/client/src/features/auth-oauth/lib/oauth-providers.ts @@ -0,0 +1,24 @@ +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) +}