Refreshing Google Id_token received via firebase google authentication

116 Views Asked by At

In Angular/React when we do google authentication using firebase we get below object.

enter image description here

Under credential we have idToken which google issues and expires in 60 minutes. How to refresh this token to get a new one .

1

There are 1 best solutions below

0
On

If you're using the provided Firebase Auth SDK, You don't have to do anything to refresh the token. The SDK will do that automatically.