jwt

package
v0.0.0-...-f12052e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0 Imports: 8 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 {
	AccessTokenSecret string
}

type JWT

type JWT struct {
	Config
}

func (JWT) Middleware

func (j JWT) Middleware() echo.MiddlewareFunc

func (JWT) NewAccessToken

func (j JWT) NewAccessToken(u model.User) (string, error)

NewAccessToken creates new access token for given user.

Jump to

Keyboard shortcuts

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