Skip to content

Commit

Permalink
fix: jwt callback (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Nov 5, 2024
1 parent c32499d commit 8e6f403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function handler(req: NextRequest): Promise<NextResponse> {

const fernUser = await safeVerifyFernJWTConfig(token, edgeConfig);

if (fernUser) {
if (fernUser == null) {
return redirectWithLoginError(redirectLocation, "unknown_error", "Couldn't login, please try again");
}

Expand Down

0 comments on commit 8e6f403

Please sign in to comment.