helper

package
v0.0.0-...-e8a9512 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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 JWTClaims

type JWTClaims map[string]interface{}

type JWTHelper

type JWTHelper interface {
	IssueToken(ctx context.Context, claims JWTClaims) (string, error)
	VerifyToken(ctx context.Context, token string) (JWTClaims, error)
	Verifier() func(http.Handler) http.Handler
}

func NewJWTHelper

func NewJWTHelper(jwtAuth jwtauth.JWTAuth, expiryTime time.Duration) JWTHelper

Jump to

Keyboard shortcuts

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