token

package
v0.0.0-...-4ff501c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingHeader = errors.New("the length of the `Authorization` header is zero")

Functions

func Init

func Init(key, identityKey string)

func Parse

func Parse(tokenString, key string) (string, error)

func ParseRequest

func ParseRequest(c *gin.Context) (string, error)

func Sign

func Sign(identityKey string) (string, error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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