token

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParsingToken     = errors.New("unable to parse token")
	ErrGeneratingTokens = errors.New("error while generating access and refresh tokens")
	ErrTokenInvalid     = errors.New("token is invalid or expired")
)
View Source
var (
	ErrPasswordHashNotMatch = errors.New("password hash does not match")
)

Functions

func ConvertToBusinessTokenGenerateResponse

func ConvertToBusinessTokenGenerateResponse(tokens *jwt.GeneratedTokens) *business.TokenGenerateResponse

func ConvertToBusinessTokenValidateResponse

func ConvertToBusinessTokenValidateResponse(credentials *domain.Credentials) *business.TokenValidateResponse

Types

type Service

func New

func New(cfg *config.Config, log *slog.Logger, tokenGenerator jwt.TokenGenerator, credentialsRepository credentialsRepository) Service

Jump to

Keyboard shortcuts

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