jwt

package
v1.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BearerTokenPrefix = "Bearer"

Variables

Functions

func GenerateToken

func GenerateToken(name string, expireDuration int64) (string, *errcode.ErrorInfo)

GenerateToken todo: need rewrite

func RefreshToken

func RefreshToken(token string) (string, *errcode.ErrorInfo)

Types

type Claims

type Claims struct {
	UserInfo v1beta1.UserInfo
	jwt.StandardClaims
}

func ParseToken

func ParseToken(token string) (Claims, *errcode.ErrorInfo)

Jump to

Keyboard shortcuts

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