token

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaskRight

func MaskRight(s string) string

Types

type TokenSource

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

TokenSource is a type that can create and validate tokens

func NewTokenSource

func NewTokenSource(l log.Logger, repo authRepo, hasher hasher, secret []byte) TokenSource

NewTokenSource creates a new TokenSource

func (TokenSource) GenerateToken

func (a TokenSource) GenerateToken(key string) (domain.Token, error)

GenerateToken creates a token from a key

Jump to

Keyboard shortcuts

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