0

I create many custom token by admin

const admin = require('firebase-admin');

const claims = {};
const UID = ""; //
admin.auth()
.createCustomToken(UID, claims)
.then((customToken) => { 
   // new token is customToken
});

How I can get all custom token of UID?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Tuan Nguyen
  • 2,542
  • 19
  • 29
  • What are you trying to do? The tokens expire once used. You can store them in db after creation if you need to – Dharmaraj Oct 13 '21 at 10:06

1 Answers1

1

Firebase doesn't have an API to return all tokens it has minted. If you need such a thing, you should create your own database of tokens (and properly secure access to it).

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807