flarebase-auth icon indicating copy to clipboard operation
flarebase-auth copied to clipboard

Question on uid after verifySessionCookie

Open santoshv98 opened this issue 11 months ago • 1 comments

  • **I'm submitting a . question about how to use this project

  • Summary

How do I find out uid after performing a verifySessionCookie? The sdk verifySessionCookie returns an object thats different from your DecodedIDToken, so I am not able to understand how I can get uid (firebase's identifier for the user)?

verifySessionCookie - is it verifying offline just by decoding jwt and NOT making any real requests to FB Http API. Can you pl confirm?

santoshv98 avatar Mar 06 '24 03:03 santoshv98

  • **I'm submitting a . question about how to use this project
  • Summary

How do I find out uid after performing a verifySessionCookie? The sdk verifySessionCookie returns an object thats different from your DecodedIDToken, so I am not able to understand how I can get uid (firebase's identifier for the user)?

verifySessionCookie - is it verifying offline just by decoding jwt and NOT making any real requests to FB Http API. Can you pl confirm?

It's token.sub as stated in https://jwt.io/introduction

As for verficitaion, read the code there is no checkRevoked code path.

clibequilibrium avatar Apr 13 '24 14:04 clibequilibrium