Skip to content

Commit

Permalink
[SOK]
Browse files Browse the repository at this point in the history
*add oauth redirect url
  • Loading branch information
gloginov committed Dec 3, 2024
1 parent 9c2111e commit a474412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
VITE_AUTH_URL='https://ya-praktikum.tech/api/v2'
VITE_SRC_URL='https://ya-praktikum.tech/api/v2/resources'
VITE_AUTH_PATHNAMES='/sign-in, /sign-up'
VITE_OAUTH_REDIRECTURL='http://sokoly-tankwars-42.ya-praktikum.tech:3001'
2 changes: 1 addition & 1 deletion packages/client/src/services/o-auth/YandexOAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NavigateFunction } from 'react-router-dom'
import { toast } from 'react-toastify'

const BASE_URL = import.meta.env.VITE_AUTH_URL
const REDIRECT_URI = 'http://localhost:3000'
const REDIRECT_URI = import.meta.env.VITE_OAUTH_REDIRECTURL || 'http://localhost:3000'
const YANDEX_AUTH_LINK = 'https://oauth.yandex.ru/authorize'

export class YandexOAuth {
Expand Down

0 comments on commit a474412

Please sign in to comment.