firebase / firebase-admin-go

Firebase Admin Go SDK
Apache License 2.0
1.12k stars 239 forks source link

[Question] Can I refresh ID Token? #625

Closed renanbastos93 closed 1 month ago

renanbastos93 commented 1 month ago

I've been using lib for verify IDToken in my api, but I'd like to refresh token sometimes. How can I do that?

google-oss-bot commented 1 month ago

I found a few problems with this issue:

lahirumaramba commented 1 month ago

You need to create ID tokens on the client side. See https://firebase.google.com/docs/auth/admin/verify-id-tokens In the future, please use Stack Overflow for usage questions.

renanbastos93 commented 1 month ago

@lahirumaramba My client created an ID token I want to renew in my backend, but I saw this library and doesn't have logic to refresh the token like JS, maybe we can implement that. What do you think?