auth

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
	SigningKey []byte
}

func NewJWT

func NewJWT() *JWT

func (*JWT) MakeToken

func (j *JWT) MakeToken(app string, id string, expires ...time.Duration) (tokenString string, err error)

func (*JWT) ParsingToken

func (j *JWT) ParsingToken(token string, app string) (claims *JwtClaims, err error)

type JwtClaims

type JwtClaims struct {
	Refresh bool `json:"refresh"`
	jwt.RegisteredClaims
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(app string, ctx echo.Context) *Service

func (*Service) ID

func (t *Service) ID() string

Jump to

Keyboard shortcuts

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