I was developing my own LOGINAPI in PHP trying to implement JWT using FIREBASE. I did it successfully but know, I am having some troubles managing that token in the clientside.
I have the token stored in cookies (or _SESSION). The thing is that I don't know how get the data from the token in the client side.
For example, the token stores
[profile] => Array ( [name] => xxx [first_name] => xxx [last_name] => xxx [email] => xxx [id] => 123456 )
How should I decode the token to get the data stored? Should I create another API the get the resource and use a request method?