Skip to content

Commit 3f6bbdd

Browse files
authored
Merge pull request #34 from WilsonLe/33-correctly-pass-jwt-token-not-access-token-to-success-redirect
fix(callback-endpoint): correctly pass jwt token to success redirect, not access token
2 parents 4f18f0e + 47246f0 commit 3f6bbdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/callback-endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const createCallbackEndpoint = (
218218
return new Response(null, {
219219
headers: {
220220
"Set-Cookie": cookie,
221-
Location: await pluginOptions.successRedirect(req, token),
221+
Location: await pluginOptions.successRedirect(req, jwtToken),
222222
},
223223
status: 302,
224224
});

0 commit comments

Comments
 (0)