You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's correct, you cannot verify a custom token, that's why I named the methods so clearly 😅.
Custom Tokens are to be exchanged for an ID token by sending them to the Firebase REST API which will send an ID token back, which then can be verified.
1. Which version of
kreait/firebase-php
are you using?3.9.3
2. Which version of PHP are you using?
PHP 7.0.25-0ubuntu0.16.04.1 (cli) ( NTS )
3. What's the issue?
Tokens created using createCustomToken cannot be verified using verifyIdToken. Error message is The header "kid" is missing.
Googling about the header kid it seems as if that one is actually an optional part of the token. (http://self-issued.info/docs/draft-jones-json-web-token-01.html#ReservedHeaderParameterName).
4. Code that lead to the issue
The text was updated successfully, but these errors were encountered: