Problem getting a refresh token #79
moises-marquez
started this conversation in
General
Replies: 2 comments 7 replies
-
Does it work if you clear local data (including cookies) on your app, in case the cookie data is malformed/incorrect for some reason? Can you provide any code to reproduce the issue? This library does sign in with a custom token to get a Firebase refresh token, which it uses to refresh the ID token on the server side. See the code here. The |
Beta Was this translation helpful? Give feedback.
2 replies
-
I am having the same issue, just running the example project triggers the same while hitting /login api route 🤔 |
Beta Was this translation helpful? Give feedback.
5 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.
-
Yesterday I followed the example for next-firebase-auth and managed to successfully sign in/out; and today while trying to move the api routes to Fastify, I get the following error when logging in:
Problem getting a refresh token: {"error":{"code":400,"message":"INVALID_CUSTOM_TOKEN","errors":[{"message":"INVALID_CUSTOM_TOKEN","domain":"global","reason":"invalid"}]}}
I thought it was yet another issue of migrating the api routes to Fastify, but after reverting the changes and using Next.js api routes again, I see that the same error is being thrown.
Unfortunately I couldn't find anything on the next-firebase-auth documentation about refresh tokens. Do you have any clue on what the issue might be?
Beta Was this translation helpful? Give feedback.
All reactions