auth

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: GPL-3.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authable

type Authable interface {
	GenJwt(mapClaims jwt.MapClaims) string
	ParseJwt(tokenStr string, structPointer any) error
	ParseJwtToMap(tokenStr string) (jwt.MapClaims, error)
}

func New

func New(config Config) Authable

type Config

type Config struct {
	JwtSecret string `env:"JWT_SECRET"`
}

Jump to

Keyboard shortcuts

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