Open app-generator opened 1 year ago
Hello @FullStackkDev,
We need a simple mechanism (CLI is preferred) to assign an ADMIN role to an existing user.
Let me know a simple solution for this use case.
Ty!
@app-generator I have updated the step4 branch for it.
Run update-role command specified in the package.json file to assign the role. I have described briefly in the README file on how to use this command. https://github.com/app-generator/api-server-nodejs/tree/step4/support-for-react#-update-role-for-existing-user
Hello @FullStackkDev
The authorization should link each user to a ROLE:
user
- numeric value 1 in users tableadmin
- numeric value 2 in users tableOn successful
signIN
(JWT) orOAuth
, the API server return also the role of the userThank you!