Package com.jangular.backend.service
Class AuthenticationService
java.lang.Object
com.jangular.backend.service.AuthenticationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(AuthRequest request, String ipAddress, String userAgent) Authenticate user and generate JWT tokensvoidchangePassword(Long userId, String oldPassword, String newPassword) Change user passwordvoidLogout user (in a complete implementation, you might want to blacklist the token)refreshToken(String refreshToken) Refresh access token using refresh token
-
Constructor Details
-
AuthenticationService
public AuthenticationService()
-
-
Method Details
-
authenticate
@Transactional public AuthResponse authenticate(AuthRequest request, String ipAddress, String userAgent) Authenticate user and generate JWT tokens -
refreshToken
Refresh access token using refresh token -
logout
Logout user (in a complete implementation, you might want to blacklist the token) -
changePassword
Change user password
-