Custom JWT Token Expiration Time

2,021 views
Skip to first unread message

alf...@itprovent.com

unread,
May 21, 2016, 11:27:17 AM5/21/16
to Firebase Google Group
Hi,

I am implementing custom authentication by generating custom JWT Token using the new Firebase Node JS Server SDK. How can i change the expiration time generated by the Firebase Auth JWT token generator?. Currently the expiration time is too short, only about 2 hours. I am hoping to increase the duration of the expiration for the token.

Thanks.

Michael Bleigh

unread,
May 22, 2016, 12:51:45 PM5/22/16
to Firebase Google Group

Expiration times are now managed by the Firebase Auth service which can refresh tokens indefinitely, so it shouldn't ever be necessary to specify an expiration.


--
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/93d1c8c5-892c-4da5-aa99-418727552d59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evans Attafuah

unread,
May 22, 2016, 5:36:55 PM5/22/16
to Firebase Google Group
In my case am using the firebase token generator module but doesn't seem to validate anymore, using custom auth.

Jacob Wenger

unread,
Jun 6, 2016, 5:39:45 PM6/6/16
to fireba...@googlegroups.com
Hey Evans, if you are using the old token generator libraries, they won't work with the Firebase 3.x.x SDKs. If you want to mint custom tokens for the 3.x.x SDKS, you should follow the instructions here. And, as Michael said, the custom token you create will be sent to the client, which will handle refreshing the underlying authentication token indefinitely.

Cheers,
Jacob

On Sun, May 22, 2016 at 2:36 PM, Evans Attafuah <evans.a...@gmail.com> wrote:
In my case am using the firebase token generator module but doesn't seem to validate  anymore, using custom auth.
--
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.
Reply all
Reply to author
Forward
0 new messages