We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62c103 commit 8a91362Copy full SHA for 8a91362
packages/qwik-auth/src/index.ts
@@ -51,6 +51,11 @@ export function serverAuthQrl(authOptions: QRL<(ev: RequestEventCommon) => QwikA
51
52
const data = await authAction(body, req, signInUrl, auth);
53
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
+
59
if (data.url) {
60
throw req.redirect(301, data.url);
61
}
0 commit comments