Infinite redirect on Firebase Hosting after successful authentication #593
Unanswered
leandigital
asked this question in
Q&A
Replies: 1 comment
-
Not sure if this is what's happening in your case, but a possible cause is that Firebase hosting only allows using a single |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all.
I've got the whole authentication flow working perfectly locally and on Vercel. However, when using Firebase hosting (with Firebase function), immediately after user is authenticated, I'm seeing infinite requests to index.json, that seems to consist of the redirect object. However, I'm not seeing the redirect happening.
Chain of events (with log):
Setting config with provided value: {debug: true, appPageURL: '/', authPageURL: '/login', onLoginRequestError: ƒ, onLogoutRequestError: ƒ, …}
AuthUser set to: {id: null, email: null, emailVerified: false, phoneNumber: null, displayName: null, …}
Starting auth API request via tokenChangedHandler.
Completed auth API request via tokenChangedHandler.
Redirecting to app.
Locally this works with both firebase serve and firebase emulators:start. This also works on Vercel.
Any ideas of what may be going on here?
Beta Was this translation helpful? Give feedback.
All reactions