base commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { apiBaseURL } from '@/shared/config'
|
||||
|
||||
/** Абсолютный или корневой путь начала OAuth на бэкенде (редирект браузера). */
|
||||
export function oauthAuthorizeUrl(provider: 'vk' | 'yandex'): string {
|
||||
const base = apiBaseURL.replace(/\/$/, '')
|
||||
return `${base}/auth/oauth/${provider}`
|
||||
}
|
||||
Reference in New Issue
Block a user