-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Invalid Custom TOken #127
Comments
Same issue +1 |
Hello! Thank you for filing this. I unfortunately cannot duplicate this issue. The above sample validated as expected. I would verify the following:
Unfortunately, the error message being returned from the API is not very helpful, so it could be any of these things or something else. If you think there is a problem with the documentation, click Send Feedback in the top right corner of the documentation page and tell us the problem. |
Same issue +1 |
I come across this error few times every day out of some 1000 times. Started facing this issue after I upgraded the client side code to use Firebase 3.x from Firebase 2.x |
I have a similar issue. |
I've figured out the problem in my case. |
@diamond-darrell Thanks!! You saved me from pulling my hair out while testing. |
@diamond-darrell THANK YOU! |
I am having this same issue, but the time is not the problem. When I put my token into https://jwt.io/ I get an "invalid signature" error. Any ideas? |
@theknicker the same problem i dont know, i use sdk firebase and works fine but with my custom jwt with parameters like documentation i have this |
@dyangua did you find a solution to the error?
|
@rldaulton yes, i have this error because i try to create my custom token in node but in node you have method for that, in php works fine. |
`<?php // Get your service account's email address and private key from the JSON key file function create_custom_token($cedula, $is_premium_account) { $now_seconds = time(); |
same error here, |
can you elaborate? |
Anyone has fixed? "Invalid assertion format. 3 dot separated segments required.". I am facing same issues while using firbase "signInWithCustomToken(jti)" jti means JWT ID token |
Hey guys I found the solution for my case: |
Same error here. I've checked system time, changed uid from integer to string and decoded in jwt.io. In jwt.io is decoded and nothing's wrong. I was having an Openssl() error using
|
Just solved it! Reading this issue I could work with |
In my case item number 1 was the problem. After setting the correct service account email I was missing the private key of the same project. I was using a generic RSA private key. |
Im using custom token auth on Firebase. I tried to generate token as the documentation said. But when i try to login in client side with (loginWithCustomToken(token)) method it gives an error below
I generate token with this code block as described in firebase documentation
The text was updated successfully, but these errors were encountered: