jwt

package
v0.0.0-...-0e42b2a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtCustomClaims

type JwtCustomClaims struct {
	ID    uint   `json:"id"`
	Email string `json:"email"`
}

type JwtToken

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

func NewJwtToken

func NewJwtToken(cfg config.Config) *JwtToken

func (JwtToken) ClaimsToken

func (JT JwtToken) ClaimsToken(token string) (*JwtCustomClaims, error)

func (JwtToken) GenerateToken

func (JT JwtToken) GenerateToken(CustomClaims *JwtCustomClaims) (string, error)

Jump to

Keyboard shortcuts

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