Hi
what i meant was from the public key url , we get two keys with id
however the token that i created from java firebase-admin sdk version 7.1.0
FileInputStream serviceAccount = new FileInputStream(/path/to/serviceAccount);
FirebaseOptions options = FirebaseOptions.builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .setDatabaseUrl("https://123.firebaseio.com").build(); if (FirebaseApp.getApps().isEmpty()) { FirebaseApp.initializeApp(options); }
var token = FirebaseAuth.getInstance().createCustomToken("123");
The token created above does not have key id to select one of the public key from the url. Tthe token header only has
{"alg":"RS256"} .
so how do we knwo which public key to use without kid in the header?
Does it make sense?
Thanks
aks