10주차 미션 [레인] - #48
Open
geumbiii wants to merge 4 commits into
Open
Conversation
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
실습
미션
EC2 배포 상태에서 Google 로그인 안 되는 이유: “배포된 서버 기준 URL 문제”
내 코드 내부: http://localhost:3000/oauth2/callback/google
실제 서버는: http://3.37.127.50:3000
로그인 흐름(결과적으로 로그인 실패):
-> redirect URI 변경
// 기존
http://localhost:3000/oauth2/callback/google
// 수정
http://3.37.127.50:3000/oauth2/callback/google
-> .env 수정
GOOGLE_REDIRECT_URI=http://3.37.127.50:3000/oauth2/callback/google
-> Google Cloud 콘솔 수정
Authorized redirect URI에 추가 http://3.37.127.50:3000/oauth2/callback/google
-> 서버 재시작