vocascan / vocascan-server

Server for Vocascan
https://vocascan.com
Apache License 2.0
26 stars 5 forks source link

Implemented auth middleware with JWT tokens #7

Closed noctera closed 3 years ago

noctera commented 3 years ago

Added auth middleware and implemented return of JWT token when signing in JWT token includes:

  1. User id
  2. User role
  3. Expiry date