Creates an instance of AuthService.
Service for user-related database operations
Service for JWT token generation and validation
Service for sending emails to users
Changes a user's email address and issues a new JWT token.
Current email address of the user
New email address to change to
A success message and new JWT token
Initiates the forgot password process by sending a reset link to the user's email.
Email address of the user requesting password reset
A success message indicating an email was sent
Registers a new user in the system with the Student role.
Email address of the user
First name of the user
Last name of the user
Password for the account
A success message upon successful registration
Service responsible for authentication and user account management operations. Handles user registration, login, password reset, and email changes.