token

package
v2.0.0-...-fbac10d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaskRight

func MaskRight(s string) string

MaskRight is used to mask a string

Types

type Source

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

Source is a type that can create and validate tokens

func NewSource

func NewSource(l log.Logger, repo authRepo, hasher hasher, secret []byte) Source

NewSource creates a new Source

func (Source) GenerateToken

func (a Source) 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