fix(auth): Next.js 15 미들웨어 JWT 인식 수정 - #118
Merged
Merged
Conversation
next-auth/middleware 기본 export가 Next.js 15 Edge 런타임에서 JWT 토큰을 인식하지 못해 로그인 후에도 보호 페이지 접근 시 로그인 페이지로 되돌아가는 문제 해결. - getToken을 직접 호출하고 secureCookie 옵션 명시 설정 - callbackUrl을 상대 경로(pathname)로 전달하여 절대 URL 문제 해결 Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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.
Summary
next-auth/middleware기본 export가 Next.js 15 Edge 런타임에서 JWT 토큰을 인식하지 못하는 문제 수정getToken을 직접 호출하고secureCookie옵션을 명시적으로 설정callbackUrl을 상대 경로(pathname)로 전달하여 절대 URL 리다이렉트 문제도 함께 해결Test plan
🤖 Generated with Claude Code