diff --git a/src/features/auth/model/module/index.ts b/src/features/auth/model/module/index.ts index b8f3254..3aba439 100644 --- a/src/features/auth/model/module/index.ts +++ b/src/features/auth/model/module/index.ts @@ -50,7 +50,7 @@ export const useAuthStore = defineStore(Stores.AUTH, () => { const res = await loginYandex(); const redirect_url = res.data console.log(res.data); - window.location.href = res.data; + window.location.href = redirect_url; } catch (e: any) { console.log(e.response.data.message) } finally { diff --git a/src/shared/lib/types/other.ts b/src/shared/lib/types/other.ts index e1f0831..6c6cf63 100644 --- a/src/shared/lib/types/other.ts +++ b/src/shared/lib/types/other.ts @@ -12,6 +12,7 @@ export enum Routes { LIBRARY = 'library', SUPPORT = 'support', PROFILE = 'profile', + YANDEX_PROCESSING = 'login/yandex/processing' } export type AuthData = {