token

package
v0.0.0-...-16a0369 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokener

type Tokener interface {
	// Sign returns the JWT token from a user uuid
	Sign(uuid string) (string, error)

	// Verify returns the user uuid from a JWT token
	Verify(token string) (string, error)
}

Tokener is an abstract interface for signing and verifying tokens

func NewTokener

func NewTokener() Tokener

NewTokener creates a default token signer

Jump to

Keyboard shortcuts

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