jwt

package
v0.0.0-...-38d2dd1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTer

type JWTer interface {
	Validate(token string, cs jwt.Claims) (*jwt.Token, error)
}

type Validator

type Validator struct {
	errors.AuthErrCheck
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(jwter JWTer) (*Validator, error)

func (Validator) Validate

func (v Validator) Validate(token string) (*model.JWTClaim, error)

Jump to

Keyboard shortcuts

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