Module backend.auth
This file contains the functionality for user authentication for JobTrackr. There are functions to register a new user, login an existing user, and logout a currently logged in user.
Functions
def login(UserRecords)-
Attempts to login a user with the provided email and password.
Request: { email: string, password: string } Response: { status: 200 data: Success message status: 400 data: Error message } def logout()-
Logs out the current user from the system.
Request: { } Response: { data: message (Success) } def register(UserRecords)-
Registers a new user into the system.
Request: { firstName: string, lastName: string, email: string, password: string, confirmPassword: string } Response: { status: 200 data: Success message status: 400 data: Error message }