jwt

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 2

README

go-jwt

Convenience wrapper for JWT creation

Code of Conduct | Contribution Guidelines

GitHub release GoDoc Travis Go Report Card License

Description

This package is used by grafton to generate JWTs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(signingKey string, claims interface{}, expireDuration *time.Duration) (string, jwt.StandardClaims, error)

New returns a signed JWT string for the given claims

func Read

func Read(signingKey, jwtString string) (map[string]interface{}, error)

Read returns the interface of custom claims from within the token

Types

This section is empty.

Jump to

Keyboard shortcuts

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