paseto

package
v0.0.0-...-48528b7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *config.Token) (ports.TokenService, error)

Types

type PasetoToken

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

func (*PasetoToken) CreateToken

func (pt *PasetoToken) CreateToken(user *domain.User) (string, error)

func (*PasetoToken) VerifyToken

func (pt *PasetoToken) VerifyToken(token string) (*domain.TokenPayload, error)

Jump to

Keyboard shortcuts

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