Closed tombouquet closed 1 year ago
Thanks for the issue. Could you clarify: do you believe this is a bug in next-firebase-auth
or just a bug in Firebase? Does this occur with older versions of the Firebase JS SDK?
I am experiencing the same issue where upon logging in, the system displays a message indicating successful login, but fails to redirect to the designated application page URL until a manual refresh is performed.
Closing this until there's more info or a reproduction. FYI: any error could also be related to #614 .
When filing a bug report, please confirm you've done the following:
onVerifyTokenError
andonTokenRefreshError
in your config and checked for any helpful errors?Yes
debug: true
in your config and read through server-side and client-side debug logs for any helpful messages?Yes
Yes
Yes
Describe the bug
Just a heads up that these versions do not work when using client side redirecting after a user has signed in. No errors in the console, debug or anything. Version 9.17.0 does have a bug which is why it isn't working however it is fixed in 9.17.1, which is where the bug I am describing is occuring. I've just included it as an fyi for anyone.
I understand that devs can't always keep up with all the new versions of stuff. I just spent a long time trying to figure out why my app isn't working and didn't want anyone else to suffer the pain. 😊
Versions
next-firebase-auth
version: canary.18 Firebase JS SDK: 9.17.0 - 9.17.1 Next.js: 13.1.6To Reproduce Steps to reproduce the behavior:
withAuthUser
with thewhenAuthed
option to redirect to the app.Expected behavior When the user logs in the page redirects.