auth

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AuthParameter = "key"
)

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(claims jwt.MapClaims, secret string) (string, error)

CreateToken creates a token with the given claims

func Middleware

func Middleware(secret string) *jwtmiddleware.JWTMiddleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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