auth

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func Configure2FA(ctx context.Context, userID *uuid.UUID) (err error)

Configure2FA performs business logic to configure otp for a user

func CreateAccount

func CreateAccount(ctx context.Context, in *domain.CreateAccount) (url *string, err error)

CreateAccount is the business logic for the user register

func DisableUser added in v0.6.0

func DisableUser(ctx context.Context, userUUID *uuid.UUID) error

DisableUser is the business logic for disable user

func GetQRCode2FA added in v0.6.0

func GetQRCode2FA(ctx context.Context, userID *uuid.UUID) (url *string, err error)

GetQRCode2FA performs business logic to get qrcode url

func Login

func Login(ctx context.Context, in *domain.Login) (*domain.Session, error)

Login is the business logic for the user login

func LoginSteps

func LoginSteps(ctx context.Context, email *string) (res *domain.Steps, err error)

LoginSteps is the business logic needed to retrieve needed steps for log a user in

func Logout

func Logout(ctx context.Context, sessionID *uuid.UUID) (err error)

Logout is the business logic for the user logout

func Unconfigure2FA added in v0.6.0

func Unconfigure2FA(ctx context.Context, userID *uuid.UUID) (err error)

Unconfigure2FA performs business logic to unconfigure otp for a user

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL