hs256

package
v0.0.0-...-d73a121 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(tokenString string) (claims map[string]interface{}, err error)

Decode decodes a jwt token string.

If the jwt token is invalid it returns an error.

func Encode

func Encode(payload map[string]interface{}) (tokenString string, err error)

Encode encodes a jwt token using data gotten from payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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