-
-
Notifications
You must be signed in to change notification settings - Fork 434
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
Mismatch token timestamp web client and php server cause exception #139
Comments
Hey @alexswe1! Thank you for your report - this seems to be the same issue as in #140 - if you agree, I'd like to close this issue and we can continue the discussion over there, where I already added a proposal to work around this issue: #140 (comment) |
Yes, same issue, although I reported it first.
|
Continued in #140 |
4.9.0 (Documentation) should fix the issue for special use cases. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am using version 3.5 of the library. The issue is that the timestamp on the client with firebase web and the timestamp on the php server is mismatched and that causes an exception to be thrown when validating token in php. See details below:
On the client i get the token with:
On the php server i run this code:
With the $idTokenString sent in from the client.
When running verifyIssuedAt in IdTokenVerifier class i get the error message:
"This token has been issued in the future."
The problem is that inside that code you have:
The problem is as mentioned that the token from the client is in the future compared to the timestamp on the server. The test i ran the timestamp (from clock) on the server was 5 minutes slower then on client, so mismatch in timestamp caused it to not work (exception thrown)..
The text was updated successfully, but these errors were encountered: