Package-level declarations
Types
Changes the current password Params.currentPassword of the user with the new one provided Params.newPassword. If the user is not logged in it returns an instance of Either.Left containing AppError.Unauthorized
Deletes the logged in user. If the user is not logged in it returns an instance of Either.Left containing AppError.Unauthorized
Gets the current state of authentication.
Gets the the logged in user If the user is not logged in it returns an instance of Either.Left containing AppError.Unauthorized
Logs in the user with the provided Params.credentials
Logs out the currently logged in user. If no user is currently logged in it succeeds.
Signs up a new user Params.user
Validates the email of a user
Validates the name of a user
Validates the password of a user