jwt

package
v0.0.0-...-c1d5c34 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SecretKey string `koanf:"secret_key"`
}

type JWT

type JWT interface {
	CreateTokenString(userId uint, email string) (string, error)
	ExtractTokenData(tokenString string) (uint, string, error)
}

func New

func New(cfg *Config) JWT

Jump to

Keyboard shortcuts

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