Skip to content

Commit 8a91362

Browse files
lieranderlevfedotoPatrickJS
authored
fix: #5227 (#6156)
* fix for #5227 * style(qwik-auth): fmt --------- Co-authored-by: Evgenii Fedotov (evfedoto) <[email protected]> Co-authored-by: PatrickJS <[email protected]>
1 parent f62c103 commit 8a91362

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/qwik-auth/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ export function serverAuthQrl(authOptions: QRL<(ev: RequestEventCommon) => QwikA
5151

5252
const data = await authAction(body, req, signInUrl, auth);
5353

54+
// set authjs.callback-url cookie. Fix for https://github.com/QwikDev/qwik/issues/5227
55+
req.cookie.set('authjs.callback-url', callbackUrl, {
56+
path: '/',
57+
});
58+
5459
if (data.url) {
5560
throw req.redirect(301, data.url);
5661
}

0 commit comments

Comments
 (0)