Reputation: 520
Is it possible to generate a one-time use token through Firebase Auth?
I want to:
firebase.auth().verifyIdToken()
from firebase-admin
is used to decode the token and check for a custom claimTrying to do this without rolling my own solution. My API is built using Node.js and it would be really nice if the same middleware that handles Firebase Auth can be used on this particular endpoint too.
Upvotes: 1
Views: 424
Reputation: 598817
There is nothing built into Firebase Authentication that you can use for this. You could use the same approach Firebase uses for signing its tokens (JWT) to build it, but that would be rolling your own solution.
Upvotes: 1