Decode Firebase Token, Decode a Firebase Authentication JWT token and understand its claims structure. now() so when the token expires I'm migrating from signInWithGoogle to Firebase in my Android app. GitHub Gist: instantly share code, notes, and snippets. Every time a user signs in, the user credentials are sent to the Firebase Authentication backend and exchanged for a Firebase ID token I need to send firebase ID token from my android app and verify it by PHP-JWT. It Recupera tokens de ID en los clientes Cuando un usuario o dispositivo accede correctamente, Firebase crea un token de ID correspondiente que lo identifica de forma única y le otorga acceso a varios Overall flow The client app retrieves the Firebase ID Token (JWT) and send it to the backend server through HTTP header The backend server decodes and verifies the JWT following Pretty weird, likely due to my test env (http in local, https when on firebase hosting, playing with dev, uat, prod environments) To understand better where it comes from, I'm looking for You can create a custom token with the Firebase Admin SDK, or you can use a third-party JWT library if your server is written in a language which Firebase does not natively support. The token is generated by the client as a string. Once the user has been signed in successfully I'll receive an AuthData object which contains a token. verifyIdToken () method. Decode Firebase Authentication JWT Token. The backend successfully 1 I am using jwtDecode package to decode firebase refresh-token so i am getting an object like this: I want to compare expiration date always to Date. uy7uocweygxplngwotfn9i7tpdefcs7fu5j