token

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(token string, claims interface{}) error

func ExpiresIn added in v0.2.11

func ExpiresIn(token string) (time.Duration, error)

func JWT

func JWT(privateKey string, claims interface{}, maxAge time.Duration) (string, error)

func KeyPair

func KeyPair() (string, string, error)

func Verify added in v0.2.11

func Verify(token string, publicKey string, claims interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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