Documentation ¶
Index ¶
- func ChangePassword(ctx context.Context, in *domain.ChangePassword) (err error)
- func Configure2FA(ctx context.Context, userID *uuid.UUID) (err error)
- func CreateAccount(ctx context.Context, in *domain.CreateAccount) (url *string, err error)
- func DisableUser(ctx context.Context, userUUID *uuid.UUID) error
- func GetQRCode2FA(ctx context.Context, userID *uuid.UUID) (url *string, err error)
- func Login(ctx context.Context, in *domain.Login) (*domain.Session, error)
- func LoginSteps(ctx context.Context, email *string) (res *domain.Steps, err error)
- func Logout(ctx context.Context, sessionID *uuid.UUID) (err error)
- func Unconfigure2FA(ctx context.Context, userID *uuid.UUID) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶ added in v0.5.0
func ChangePassword(ctx context.Context, in *domain.ChangePassword) (err error)
ChangePassword is the busines logic for change passoword
func Configure2FA ¶ added in v0.6.0
Configure2FA performs business logic to configure otp for a user
func CreateAccount ¶
CreateAccount is the business logic for the user register
func DisableUser ¶ added in v0.6.0
DisableUser is the business logic for disable user
func GetQRCode2FA ¶ added in v0.6.0
GetQRCode2FA performs business logic to get qrcode url
func LoginSteps ¶
LoginSteps is the business logic needed to retrieve needed steps for log a user in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.