jwt

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() middleware.MiddlewareBuilder

func Server

func Server(opts ...Option) middleware.Middleware

Types

type Config

type Config struct {
	Secret   string   `json:"secret" yaml:"secret"`
	Method   string   `json:"method" yaml:"method"`
	Expire   int      `json:"expire" yaml:"expire"`
	Excludes []string `json:"excludes" yaml:"excludes"`
}

type Option

type Option func(*options)

Option is jwt option.

func WithExcludes

func WithExcludes(excludes ...string) Option

func WithSecret

func WithSecret(secret string) Option

func WithSigningMethod

func WithSigningMethod(method jwt.SigningMethod) Option

WithSigningMethod with signing method option.

Jump to

Keyboard shortcuts

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