[250911 김성주] 카카오 로그인 #37
Open
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.
1. 코드 Summary
(어떤 기능을 구현했는지보다 코드를 작성할 때 어떤 점을 신경써서 구현했는지, 어떻게 구현했는지를 최대한 구체적으로 작성해주세요.)
options.redirectTo→ 로그인 성공 후 /auth/callback?next=/profile로 리다이렉트options.scopes→ 어떤 권한을 요청할지 지정 -> 카카오 계정 이메일, 닉네임, 프로필 이미지 권한 요청const { data } = await supabase.auth.getSession();→ 세션이 있으면 정상 로그인 상태세션이 존재하면 다음 경로 next로 리다이렉트
navigate(next, { replace: true });2. Key Changes
(같은 과제를 다시 제출하는 경우에만 변경사항을 입력해주세요.)
3. Reference
(코드 작성하면서 참고한 블로그/문서 등을 참조해주세요! 링크와 함께 어떤 기능을 수행할 때 참조했는지 짧게 작성해주세요.)
4. Report
(노션에 작성한 스터디 회고 링크를 첨부해주세요.)