"Auth session missing" error when I switch API keys?
I'm getting Auth Session Missing error when getting the user using client.auth.getUser()
This is VERY weird because I've just copied the code directly from an old Supabase website where the auth works 100%.
I cloned the repo, with the same API keys, and it works, then when I switch the API keys to the new Supabase project I made, I get the error.
Why is me changing my API keys causing this error to appear? My setup is exactly from the Supabase Next.js Server-Side auth guide.
Notes:
This is VERY weird because I've just copied the code directly from an old Supabase website where the auth works 100%.
I cloned the repo, with the same API keys, and it works, then when I switch the API keys to the new Supabase project I made, I get the error.
Why is me changing my API keys causing this error to appear? My setup is exactly from the Supabase Next.js Server-Side auth guide.
Notes:
- I'm using Discord OAuth to sign in
- Discord OAuth is 100% setup
- Signups are enabled in my dashboard
- Works fine with API keys from another (older) project, but the one I just made, it doesn't work with them keys
- Not much has been changed in this new Supabase Project. Just enabling Discord OAuth and adding a redirect URL, that's all.