Replies: 1 comment
-
Fixed, I had to add the Google provider and the Supabase adapter to auth.config.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to protect the Home Page of my app and send users to the login page if they're not logged in. I'm using NextJS App Router, NextAuth and the middleware approach. Provider is Google and strategy database. Login seemed to work OK before implementing resources protection through middlware. User details woul be saved in the database, and users redirected to the home page upon login.
Now after implmenting resource protection, users are always redirected to the login page and I see the following error:
Here is the implementation:
Beta Was this translation helpful? Give feedback.
All reactions