-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Wrong number of parameters in signToken method #382
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
Comments
I mean |
Good point. I'm currently rebuilding |
Is the information |
Yes. I believe that's how jwt works. If you have some spare time you can checkout my WIP on |
I will take a look tomorrow. Sometimes I had to sleep. ;)
|
I believe it is addressed in #392 |
Change the parameters passed into the signToken function. This change is trivial and tidies up the code. No breaking change. Fixes issue angular-fullstack#382
add role as second parameter, and attach to jwt closes #382
closed by #1131 |
The method
signToken
fromauth.service.js
is always called with two parameters:(in
/app/templates/server/auth(auth)/local/index.js
line 15 or in/app/templates/server/auth(auth)/auth.service.js
line 68)But the function just accepts one parameter:
Where are the informations user.id and user.role extrated out of the token and then used?
The text was updated successfully, but these errors were encountered: