api-server-nodejs icon indicating copy to clipboard operation
api-server-nodejs copied to clipboard

Evolution 3# - Authorization (Roles)

Open app-generator opened this issue 1 year ago • 2 comments

Hello @FullStackkDev

The authorization should link each user to a ROLE:

  • user - numeric value 1 in users table
  • admin - numeric value 2 in users table

On successful signIN (JWT) or OAuth, the API server return also the role of the user

  • during the registration (JWT, OAuth) the created user is associated with a default "USER" role

Thank you!

app-generator avatar Nov 28 '22 10:11 app-generator