How to extend 'idToken' expiration in identitytoolkit/v3/relyingparty/verifyPass?

Hi, Google Cloud Community!

We're currently running performance tests in a backend API - hosted in API Gateway. We are utilizing Firebase Authentication in the endpoints security.

One way to access the API Gateway is thru generating an idToken; then adding it on the header.

Test usually takes more than 1hr. So the token expires. 

However, if the team configured to generate the idToken for every call, it will encounter and exceed the quota for verifying password.

Is there a way to extend the 'idToken' expiration?

1 1 406
1 REPLY 1

Hello @cyrille115,

Welcome to Google Cloud Community!

Yes, you are correct that ID Tokens are valid for up to 1 hour (3600 seconds). But when the ID Token expires, you must really acquire a new one. Unlike Access Tokens, also valid for 1 hour but the lifetime can be extended up to 12 hours. 

See this link for different types of tokens that are used in different environments.

Don't hestitate to post back any questions here, we are delighted to try and help.

Thanks

Top Labels in this Space