jwtx

package
v0.0.0-...-af9c1cf Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 4 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 {
	Options Options
	// contains filtered or unexported fields
}

func NewService

func NewService(options ...Options) (*JWTService, error)

NewService constructs a new JWTService instance with supplied options.

func (*JWTService) Parse

func (s *JWTService) Parse(payload []byte) (jwt.Token, error)

func (*JWTService) Validate

func (s *JWTService) Validate(token jwt.Token) error

type Options

type Options struct {
	JWKS string `json:"jwks"`
	Aud  string `json:"aud"`
	Iss  string `json:"iss"`
}

Options is a struct for specifying configuration options for the JWT service.

Jump to

Keyboard shortcuts

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