jwtauth

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

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

func NewVerifier

func NewVerifier(opts VerifierOptions) *Verifier

func (*Verifier) ValidateSettings

func (v *Verifier) ValidateSettings(ctx context.Context, settings management.Settings) error

func (*Verifier) VerifyAccessToken

func (v *Verifier) VerifyAccessToken(
	ctx context.Context,
	settings management.Settings,
	accessToken string,
) error

type VerifierOptions

type VerifierOptions struct {
	HTTPClient *http.Client
	CacheTTL   time.Duration
	Leeway     time.Duration
	Now        func() time.Time
}

Jump to

Keyboard shortcuts

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