jwt

package
v0.0.0-...-b8bafe8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access interface {
	GenerateToken(user *token.User) (string, error)
	ParseToken(accessToken string) (*token.User, error)
}

func NewAccess

func NewAccess(cfg config.Config) Access

type JWT

type JWT Access

func NewJWT

func NewJWT(cfg config.Config) JWT

type TodoAccess

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

func (TodoAccess) GenerateToken

func (j TodoAccess) GenerateToken(user *token.User) (string, error)

func (TodoAccess) ParseToken

func (j TodoAccess) ParseToken(accessToken string) (*token.User, error)

type TokenInValid

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

func (*TokenInValid) Error

func (err *TokenInValid) Error() string

Jump to

Keyboard shortcuts

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