auth

package
v0.0.0-...-c72a9d5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenAuth  *jwtauth.JWTAuth
	Expiration = 30 * time.Minute
)

Functions

This section is empty.

Types

type Claims

type Claims struct {
	UserID uuid.UUID
	jwt.StandardClaims
}

func GenerateToken

func GenerateToken(id uuid.UUID) (*Claims, string, error)

Jump to

Keyboard shortcuts

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