leafToken

package module
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims interface {
	User() UserLogin
	Valid() error
}

type Decoder

type Decoder interface {
	DecodeToken(tokenString string) (Claims, error)
}

type Encoder

type Encoder interface {
	EncodeToken(claims Claims) (string, error)
	CreateUserClaims(user UserLogin, exp int64) Claims
}

type Token

type Token interface {
	Encoder
	Decoder
	Encoder() Encoder
	Decoder() Decoder
}

type UserLogin

type UserLogin struct {
	ID    uint64 `json:"id"`
	Email string `json:"email"`
	Phone string `json:"phone"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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