jwt

package
v0.0.0-...-c043ed3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SECRET = "go-pipelines"

Variables

This section is empty.

Functions

func VerifyJWT

func VerifyJWT(jwt JWT) (bool, interface{})

VerifyJWT verifies the JWT and returns payload unmarshalled to an interface{}. The interface{} needs to then be marshalled and unmarshalled again.

Types

type JWT

type JWT string

func CreateJWT

func CreateJWT(payload interface{}) JWT

CreateJWT uses the payload you passed on to create a HS256-signed JWT

Jump to

Keyboard shortcuts

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