auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activation

func Activation(ctx context.Context, token *uuid.UUID) (err error)

Activation is the business logic for the user activation

func Configure

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

Configure performs business logic to configure otp for a user

func CreateAccount

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

CreateAccount is the business logic for the user register

func Disable

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

Disable is the business logic for disable user

func GetQrCode

func GetQrCode(ctx context.Context, userID *uuid.UUID) (res *domain.QRCode, err error)

GetQrCode 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 Unconfigure

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

Unconfigure 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