auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

type UseCase interface {
	// ValidateOTP return a Response by given request.
	ValidateOTP(ctx context.Context, req auth.Request) (*auth.Response, error)
	// CreateJWT create new jwt claims, then append the token to Response.
	CreateJWT(ctx context.Context) (*auth.Response, error)
}

UseCase a use case spec that's used in authentication domain.

func NewUseCase

func NewUseCase(conf *viper.Viper, zap *zap.Logger, repo authRepo.Repository) UseCase

NewUseCase return concrete implementation of UseCase in auth domain.

Jump to

Keyboard shortcuts

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