Package api.mpba.rastvdmy.service
Interface AuthService
- All Known Implementing Classes:
AuthServiceImpl
public interface AuthService
Service interface for authentication operations, including user sign-up and authentication.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(UserLoginRequest loginRequest) Authenticates a user with the provided login credentials.signUp
(UserProfileRequest userProfileRequest) Signs up a new user with the provided user profile information.
-
Method Details
-
signUp
Signs up a new user with the provided user profile information.- Parameters:
userProfileRequest
- the request object containing user profile information- Returns:
- a
JwtAuthResponse
containing the JWT and other authentication details - Throws:
Exception
- if an error occurs during the sign-up process
-
authenticate
Authenticates a user with the provided login credentials.- Parameters:
loginRequest
- the request object containing login credentials- Returns:
- a
JwtAuthResponse
containing the JWT and other authentication details
-