Interface UserAuthService
- All Known Implementing Classes:
UserAuthServiceImpl
public interface UserAuthService
Service that provides the methods to authenticate the user.
-
Method Summary
Modifier and TypeMethodDescriptionLogs in the user with the given fiscal code and password.register(RegisterInput registerInput) Registers the user with the given input.
-
Method Details
-
login
LoginOutput login(String fiscalCode, String password) throws UserNotFoundException, WrongPasswordException Logs in the user with the given fiscal code and password.- Parameters:
fiscalCode- The fiscal code of the userpassword- The password of the user- Returns:
- The JWTs of the user
- Throws:
UserNotFoundException- if the user is not foundWrongPasswordException- if the password is wrong
-
register
LoginOutput register(RegisterInput registerInput) throws UserNotFoundException, UserAlreadyExistsException Registers the user with the given input.- Parameters:
registerInput- The input of the register mutation- Returns:
- The JWTs of the user
- Throws:
UserNotFoundException- if the user is not foundUserAlreadyExistsException- if the user already exists
-