token

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

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jwt = &jwtToken{
	signingMethod: jwt.SigningMethodHS256,
	secret:        []byte("doorman-secret"),
	issuer:        "doorman",
	expire:        24 * time.Hour,
	notBefore:     time.Now(),
}

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Create(id core.Identification) (string, error)
}

type Verifier

type Verifier interface {
	Verify(token string) (core.Identification, bool)
}

Jump to

Keyboard shortcuts

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