--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c9593746-ceb6-42e1-b5f9-2c4627e23c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Julian,ID tokens are short-lived. They expire after 1 hour.Unless you do some kind of session management in the backend server, you will have to perform ID token verification for each individual user/app request.Thanks,Hiranya
On Wed, Jul 19, 2017 at 11:06 AM, <twinkle...@gmail.com> wrote:
The documentation certainly explains how to verify an ID token on my server: https://firebase.google.com/docs/auth/admin/verify-id-tokens
…but it doesn't mention how long ID tokens last or, really, if they are revocable. Maybe they thought it was obvious, but usually tokens can be invalidated (auth credential change, user disabled…)
Are there any such cases? And what is correct behavior of an app backend service that works with the ID token. Should it 'verify' on every request from app? Or just once as the documentation implies?
Thanks,
Julian
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c9593746-ceb6-42e1-b5f9-2c4627e23c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This still requires the app to provide the new ID tokens on subsequent requests.
I am guessing that the suggested way to do this while the app is open is 'Auth listener'. And "The current user's access token" (on https://firebase.google.com/docs/auth/users#auth_tokens) means the ID token?
And the app will still need to do a getToken task at launch (even if currentUser exists) and pass it to my backend?
Last, by any chance is there a way for the server (or app even) to know the expiration time?
Thanks,
Julian
On Wednesday, July 19, 2017 at 1:48:06 PM UTC-5, Hiranya Jayathilaka wrote:Hi Julian,ID tokens are short-lived. They expire after 1 hour.Unless you do some kind of session management in the backend server, you will have to perform ID token verification for each individual user/app request.Thanks,HiranyaOn Wed, Jul 19, 2017 at 11:06 AM, <twinkle...@gmail.com> wrote:The documentation certainly explains how to verify an ID token on my server: https://firebase.google.com/docs/auth/admin/verify-id-tokens--
…but it doesn't mention how long ID tokens last or, really, if they are revocable. Maybe they thought it was obvious, but usually tokens can be invalidated (auth credential change, user disabled…)
Are there any such cases? And what is correct behavior of an app backend service that works with the ID token. Should it 'verify' on every request from app? Or just once as the documentation implies?
Thanks,
Julian
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c9593746-ceb6-42e1-b5f9-2c4627e23c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/ad1cf63e-43e0-49bd-9d98-2996441ad7bf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/ad1cf63e-43e0-49bd-9d98-2996441ad7bf%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8c05c659-0fa4-450f-8f96-7cb49dd889bb%40googlegroups.com.