gladly-team / next-firebase-auth

Simple Firebase authentication for all Next.js rendering strategies
https://nfa-example-git-v1x-gladly-team.vercel.app/
MIT License
1.35k stars 290 forks source link

Redirecting from app page after setting "whenUnauthed: AuthAction.REDIRECT_TO_LOGIN" #404

Closed ukanwat closed 2 years ago

ukanwat commented 2 years ago

Describe the bug when I set "whenUnauthed: AuthAction.REDIRECT_TO_LOGIN" in the app page ('/') , it redirects me to the auth screen irrespective of whether I'm signed in or not.

Versions

next-firebase-auth version: 0.13.4 Firebase JS SDK: 8.9.1 Next.js: 12.0.7

To Reproduce Steps to reproduce the behavior:

  1. Just set it up in your project.
  2. set "whenUnauthed: AuthAction.REDIRECT_TO_LOGIN" in the app page ('/'

Expected behavior Page shouldn't redirect

Additional context Add any other context about the problem here.

kmjennison commented 2 years ago

The live demo doesn't have this issue, and I'll need more info to be able to help:

Closing this until there's more info.