Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

카카오 리다이렉트 URL 환경 변수 변경 #206

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ declare module NodeJS {
interface ProcessEnv {
VOTOGETHER_BASE_URL: string;
VOTOGETHER_MOCKING_URL: string;
VOTOGETHER_REST_API_KEY: string;
VOTOGETHER_SERVER_REDIRECT_URL: string;
}
}
2 changes: 1 addition & 1 deletion frontend/src/pages/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kakaoLogin from '@assets/kakao_login_medium_wide.svg';
export default function Login() {
const navigate = useNavigate();
const CLIENT_ID = `${process.env.VOTOGETHER_REST_API_KEY}`;
const REDIRECT_URI = `${process.env.VOTOGETHER_CLIENT_REDIRECT_URL}`;
const REDIRECT_URI = `${process.env.VOTOGETHER_SERVER_REDIRECT_URL}`;
const kakaoURL = `https://kauth.kakao.com/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code`;

return (
Expand Down