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ยง
- Struct containing the auth information of a user
- Github
User ๐Response
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