Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

How do I get the $decodedJwt id? #8

Closed
noloop opened this issue Apr 27, 2019 · 2 comments
Closed

How do I get the $decodedJwt id? #8

noloop opened this issue Apr 27, 2019 · 2 comments

Comments

@noloop
Copy link

noloop commented Apr 27, 2019

How do I get the $decodedJwt id?

In the firebase library, I do so:

$user->id = $decoded->data->id;

When I try $decodedJwt->sub I get null. When I check the $decodedJwt object, it is empty.

@noloop noloop closed this as completed Apr 27, 2019
@noloop
Copy link
Author

noloop commented Apr 27, 2019

I had misunderstood it, and was calling an empty $ jwt object instead of grabbing the decode. I apologize.

@lindelius
Copy link
Owner

No worries!
Let me know if you have any further questions :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants