cannot get context.session.$publicData
with passportAuth
and app router
#4213
Labels
context.session.$publicData
with passportAuth
and app router
#4213
What is the problem?
I'm trying to migrate from
page
toapp
.Our application uses
passport -google-oauth20
to authenticate users. But even though users have signed in, they can't be authenticated byuseAuthenticatedBlitzContext
, and redirect to login page.It seems that there is no session data in
BlitzContext
.Session has been created.(in Client Component,
useSession
returns session data correctly)How can I do about this?
Paste all your error logs here:
It seems that there is no error logs in both client and server.
Paste all relevant code snippets here:
app/blitz-client.ts
/app/blitz-server.ts
/app/layout.tsx
/app/page.tsx
/src/pages/api/auth/[...auth].ts
/app/secure/page.tsx
What are detailed steps to reproduce this?
Sign in with Google
in/
with no authentication/
from Google website/secure
/auth/login
byuseAuthenticatedBlitzContext
<= this is the problem.Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: