Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + type ChangePasswordUseCase struct + AccountService rootservices.AccountService + EventBus models.EventBus + Logger models.Logger + MailerService rootservices.MailerService + PasswordService rootservices.PasswordService + PluginConfig types.EmailPasswordPluginConfig + TokenService rootservices.TokenService + UserService rootservices.UserService + VerificationService rootservices.VerificationService + func (uc *ChangePasswordUseCase) ChangePassword(ctx context.Context, tokenValue string, newPassword string) error + type RequestEmailChangeUseCase struct + GlobalConfig *models.Config + Logger models.Logger + MailerService rootservices.MailerService + PluginConfig types.EmailPasswordPluginConfig + TokenService rootservices.TokenService + UserService rootservices.UserService + VerificationService rootservices.VerificationService + func (uc *RequestEmailChangeUseCase) RequestChange(ctx context.Context, userID string, newEmail string, callbackURL *string) error + type RequestPasswordResetUseCase struct + GlobalConfig *models.Config + Logger models.Logger + MailerService rootservices.MailerService + PluginConfig types.EmailPasswordPluginConfig + TokenService rootservices.TokenService + UserService rootservices.UserService + VerificationService rootservices.VerificationService + func (uc *RequestPasswordResetUseCase) RequestReset(ctx context.Context, email string, callbackURL *string) error + type SendEmailVerificationUseCase struct + GlobalConfig *models.Config + Logger models.Logger + MailerService rootservices.MailerService + PluginConfig types.EmailPasswordPluginConfig + TokenService rootservices.TokenService + UserService rootservices.UserService + VerificationService rootservices.VerificationService + func (uc *SendEmailVerificationUseCase) Send(ctx context.Context, email string, callbackURL *string) error + type SignInUseCase struct + AccountService rootservices.AccountService + EventBus models.EventBus + GlobalConfig *models.Config + Logger models.Logger + PasswordService rootservices.PasswordService + PluginConfig types.EmailPasswordPluginConfig + SessionService rootservices.SessionService + TokenService rootservices.TokenService + UserService rootservices.UserService + func (uc *SignInUseCase) GetSessionByID(ctx context.Context, sessionID string) (*models.Session, error) + func (uc *SignInUseCase) GetUserByID(ctx context.Context, userID string) (*models.User, error) + func (uc *SignInUseCase) SignIn(ctx context.Context, email string, password string, callbackURL *string, ...) (*types.SignInResult, error) + type SignUpUseCase struct + AccountService rootservices.AccountService + EventBus models.EventBus + GlobalConfig *models.Config + Logger models.Logger + PasswordService rootservices.PasswordService + PluginConfig types.EmailPasswordPluginConfig + SessionService rootservices.SessionService + TokenService rootservices.TokenService + UserService rootservices.UserService + func (uc *SignUpUseCase) SignUp(ctx context.Context, name string, email string, password string, image *string, ...) (*types.SignUpResult, error) + type UseCases struct + ChangePasswordUseCase *ChangePasswordUseCase + RequestEmailChangeUseCase *RequestEmailChangeUseCase + RequestPasswordResetUseCase *RequestPasswordResetUseCase + SendEmailVerificationUseCase *SendEmailVerificationUseCase + SignInUseCase *SignInUseCase + SignUpUseCase *SignUpUseCase + VerifyEmailUseCase *VerifyEmailUseCase + type VerifyEmailUseCase struct + AccountService rootservices.AccountService + EventBus models.EventBus + Logger models.Logger + MailerService rootservices.MailerService + PluginConfig types.EmailPasswordPluginConfig + TokenService rootservices.TokenService + UserService rootservices.UserService + VerificationService rootservices.VerificationService + func (uc *VerifyEmailUseCase) VerifyEmail(ctx context.Context, tokenStr string) (models.VerificationType, error)