jwtutils

package
v0.0.0-...-953ae9e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(id uint32, issuer, secret string) (string, error)

GenerateToken takes as input the id to sign, the issuer and the secret and generates a jwt web token

Types

type JwtCustomClaims

type JwtCustomClaims struct {
	ID uint32 `json:"id"`
	jwt.StandardClaims
}

JwtCustomClaims witholds the claims id and Structured version of Claims Section, as referenced at https://tools.ietf.org/html/rfc7519#section-4.1

Jump to

Keyboard shortcuts

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