kreait / firebase-tokens-php

A PHP library to work with Firebase tokens
MIT License
223 stars 33 forks source link

[Update] Token methods; sub() #18

Closed SuhwanCha closed 4 years ago

SuhwanCha commented 4 years ago

https://firebase.google.com/docs/auth/admin/verify-id-tokens

If all the above verifications are successful, you can use the subject (sub) of the ID token as the uid of the corresponding user or device.

It will be better if there is methods to get uid(sub) directly.