-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lumen passport custom data in payload #165
Comments
Do you mean to include extra data in the JWT token itself, in its JSON payload? |
@dusterio - Yes. |
@dusterio - e.g.
In the above payload "user_id" & "sites" is the custom data. How to pass such custom data using this package? We can do this in "tymon/jwt-auth" - https://medium.com/geekculture/restrict-jwt-token-with-ip-address-using-laravel-77ce5ae3671a |
@dusterio +1. Any way to achieve it? |
I think there are some examples at the end of this thread: |
How to pass custom data (like user_id, roles, etc) in payload along with
sub
?The text was updated successfully, but these errors were encountered: