I am trying to stop a nodejs server operation using firebase-admin, I am not using firebase-functions because it doesn't fit my requirements
I have successfully created an idToken and verified it in the server using the firebase code.
admin.auth().verifyIdToken(idToken)
.then(function(decodedToken) {
var uid = decodedToken.uid;
// ...
}).catch(function(error) {
// Handle error
});
The problem is that when I logout on the client the idToken
is still live for the remainder of the 60 minutes lifetime.
How do I destroy an IdToken so the server operation stops working?