We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am working on an API at the moment and have hit a brick wall. I am using Passport with the 'Password' grant type.
I want to return the user's information with the access tokens, however, I am not sure how to.
Which class could I implement, edit or extend to get this.
I would like this to be returned:
{ "token_type": "Bearer", "expires_in": 31536000, "access_token": "lalalalalal", "refresh_token": "lalalallala", "user": { "username": "a username", "user_type": "admin" } }
I know this is not an issue, and sorry about that.
The text was updated successfully, but these errors were encountered:
I think you can achieve it by using my suggested solution: #289 (comment)
Sorry, something went wrong.
@ICCanche I think this is being discussed here: #94
Closing for lack of activity, hope you got the help you needed :)
No branches or pull requests
I am working on an API at the moment and have hit a brick wall. I am using Passport with the 'Password' grant type.
I want to return the user's information with the access tokens, however, I am not sure how to.
Which class could I implement, edit or extend to get this.
I would like this to be returned:
{ "token_type": "Bearer", "expires_in": 31536000, "access_token": "lalalalalal", "refresh_token": "lalalallala", "user": { "username": "a username", "user_type": "admin" } }
I know this is not an issue, and sorry about that.
The text was updated successfully, but these errors were encountered: