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 ¶
NewUseCase return concrete implementation of UseCase in auth domain.
Click to show internal directories.
Click to hide internal directories.