-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: e.getIdToken is not a function #128
Comments
FYI, I downgraded to 0.12.2, no issue with this version in case someone is facing the same issue. |
Same problem here, works with alpha.0 |
This problem starts in 0.13.0-alpha.2 |
Thanks for the report. I'm able to reproduce and am working on a fix. It looks like the problem is that we used the spread operator to modify the JS SDK Firebase user (in |
@kmjennison Just about to say that! The easiest fix is to change the function in createAuthUser to
But that blows up the test coverage, but it feels like you're better at that, so hopefully it won't take too long. The other option is to pass the user and the claims separately to the Also another workaround atm is to use the Edit: It looks like you can just clone the firebaseUser object and mutate the clone directly, e.g., |
Fixed in v0.13.0-alpha.4 and updated the live example app. |
Describe the bug
Type error when launching next-firebase-auth linked to getIdToken function.
Version
To Reproduce
Steps to reproduce the behavior:
Wrap a static landing page with withAuthUser
export default withAuthUser()(LandingPage);
Launch
yarn dev
The error is linked to createAuthUser
Expected behavior
Understand where the error comes from and correct it
Additional context
Add any other context about the problem here.
Thank you for your help!
The text was updated successfully, but these errors were encountered: