jwt

package
v0.0.0-...-694c729 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccessToken

func GenerateAccessToken(credentialUuid string) (string, error)

func GenerateSessionToken

func GenerateSessionToken(credentialUuid, sessionUuid string) (string, error)

func VerifyAccessToken

func VerifyAccessToken(tokenString string) (string, error)

func VerifySessionToken

func VerifySessionToken(tokenString string) (string, string, error)

Types

type AccessTokenClaim

type AccessTokenClaim struct {
	CredentialUuid string `json:"credential_uuid"`
	jwt.StandardClaims
}

type SessionTokenClaim

type SessionTokenClaim struct {
	CredentialUuid string `json:"credential_uuid"`
	SessionUuid    string `json:"session_uuid"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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