authservice

package
v0.0.0-...-fd201ba Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTService

type JWTService struct {
	// contains filtered or unexported fields
}

func New

func New(
	log logger.Logger,
	conf config.Jwt,
	cache port.AuthCache,
	jtiGenerator func() string,
	signJWT func(token *jwt.Token, secret []byte) (string, error),
) *JWTService

func (JWTService) GenerateToken

func (r JWTService) GenerateToken(userUUIDStr string) (*string, error)

func (JWTService) LogoutToken

func (r JWTService) LogoutToken(ctx context.Context, jti string, exp int64) error

Jump to

Keyboard shortcuts

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