Replies: 1 comment
-
For setting an auth requirement globally for the app, there are a few options:
Related discussions with more info: |
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
-
I was implementing this solution in my Next.js app and wondered if there's a way to set the functions
withAuthUser
,withAuthUserSSR
, etc in a global way instead of setting them in each page. I tried to put them in my_app.tsx
file but once I reload the page it's showing me this error in thelogin.tsx
when trying to do aconst auth = getAuth()
from the Firebase JS SDK:I guess there's no need to initialize the Firebase app again as it's already initialized by
next-firebase-auth
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions