Firebase token timeout

Hello Everybody,

I've made an app to dialog with my Firebase project, all work good when i create an account with the app (email & password), but i've see that the token given by Firebase at the account creation is valid only for 1 hour. This forces me to have to recreate an account each time I need to log in with the application. I don't see how to request a new token from Firebase without having to recreate an account. Anyone got a solution?

I specify that the application does not run permanently, because the device used is frequently turned off.

Thanks you,

You use the refreshToken (this is supplied in the response when you "sign in"), to generate a new "idToken". The "refreshToken" has a very long life, so you can use it as many times as you like.