jwt

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Token     string
	Type      TokenType
	Subject   string
	ExpiresAt time.Time
}

type TokenType

type TokenType string
const (
	TokenTypeUndefined TokenType = ""
	// TokenTypeVerifyEmail is the token type for verifying emails. It must have user_id as a subject.
	TokenTypeVerifyEmail TokenType = "verify_email"
	// TokenTypeAuth is the token type for authenticating users. it must have user_id as a subject.
	TokenTypeAuth TokenType = "auth"
	// TokenTypeCI is the token type for CI authentication. It must have change_id as a subject.
	TokenTypeCI TokenType = "ci"
)

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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