Expand description
Authentication related database queries
This file contains functions for Creating an account (signup), login, token management and deleteing a user account.
Functions§
- delete_
user_ by_ id - Deletes a user from the database by their ID
- make_
admin - Promotes a user to admin status in the database
- revoke_
refresh_ token - Revokes a refresh token, preventing it from being used for future authentication
- signup_
user - Creates a new user account in the database
- store_
refresh_ token - Stores a refresh token in the database for a specific user
- update_
user_ profile - Updates a user’s profile information in the database
- validate_
refresh_ token - verify_
user_ credentials - Get’s user’s data to allow them to be verified