You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
once the token is retrieved from the user you call:
functionserverLogic(token){firebase.auth().verifyIdToken(token).then(function(user){// do something with the userconsole.log(user.uid);});}
but based on the docs the serverLogic method is not using the mock verifyIdToken method, is that intentional? I ask because if you are not using the mock version of verifyIdToken that Math.random() string will fail to be decoded by the actual firebase auth package.
The text was updated successfully, but these errors were encountered:
I was following the example here https://github.com/dmurvihill/firebase-mock/blob/master/tutorials/admin/tokens.md and it looks like you are mocking the generation of the id token which returns just a random string:
once the token is retrieved from the user you call:
but based on the docs the
serverLogic
method is not using the mockverifyIdToken
method, is that intentional? I ask because if you are not using the mock version ofverifyIdToken
thatMath.random()
string will fail to be decoded by the actual firebase auth package.The text was updated successfully, but these errors were encountered: