session

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneratorCreateFailure = "failed to create session generator: %w"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTOptions added in v1.3.0

type JWTOptions func(token jwt.Token)

func WithValue added in v1.3.0

func WithValue(key string, value interface{}) JWTOptions

type Manager

type Manager interface {
	GenerateJWT(userId uuid.UUID, userDto *dto.EmailJwt, opts ...JWTOptions) (string, jwt.Token, error)
	Verify(string) (jwt.Token, error)
	GenerateCookie(token string) (*http.Cookie, error)
	DeleteCookie() (*http.Cookie, error)
}

func NewManager

func NewManager(jwkManager hankoJwk.Manager, config config.Config) (Manager, error)

NewManager returns a new Manager which will be used to create and verify sessions JWTs

Jump to

Keyboard shortcuts

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