jwt

package
v0.0.0-...-99a2c5e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken(secret []byte, user *cargonaut.User) (token *cargonaut.Token, err error)

NewToken creates an authentication token for the specified user resource.

func UserFromToken

func UserFromToken(secret []byte, token *cargonaut.Token) (user *cargonaut.User, err error)

UserFromToken checks an authentication token for validity and returns the user which is associated with it from the token claims. The provided token is updated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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