jwt

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(tokenIssuer string, jwtSecret string, tokenLifetimeHours int, subjectID string, customClaims Claims) (string, error)

Types

type Claims

type Claims map[string]interface{}

func Parse

func Parse(jwtSecret string, bearerToken string) (Claims, error)

Jump to

Keyboard shortcuts

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