Adding payload to the JWT #98
-
Laravel 8.65 How do I add payload to the JWT? I can get the userId with
but I am not sure how to pass the other payload fields to this function. My login script:
|
Beta Was this translation helpful? Give feedback.
Answered by
eschricker
Jan 13, 2022
Replies: 1 comment 1 reply
-
I am not sure if its meant to be used in this way or if there are any side effects, but you could try the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eschricker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure if its meant to be used in this way or if there are any side effects, but you could try the following: