Module iqps_backend::auth

source ยท
Expand description

Utils for Github OAuth integration and JWT authentication

Currently this is only used in the admin dashboard and uses Github OAuth for authentication

Structsยง

Functionsยง

  • Takes a Github OAuth code and creates a JWT authentication token for the user
  • generate_token ๐Ÿ”’
    Generates a JWT with the username (for claims) and secret key
  • Verifies whether a JWT is valid and signed with the secret key