Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.