token

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator validates JWT tokens signed with an ECDSA public key

func NewValidator

func NewValidator(pubKey []byte) (*Validator, error)

NewValidator creates a new Validator with the public key.

func (*Validator) Validate

func (v *Validator) Validate(tokenStr, subject string) error

Validate validates the token is valid and was issued for the specified subject.

Jump to

Keyboard shortcuts

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