jwt

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyJwtGenerator added in v0.1.4

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

func NewDummyJwtGenerator added in v0.1.4

func NewDummyJwtGenerator(issuer string, exp int64, secret string) *DummyJwtGenerator

func (DummyJwtGenerator) GenerateToken added in v0.1.4

func (d DummyJwtGenerator) GenerateToken(auth *domain.Auth, payload map[string]interface{}) (string, error)

func (DummyJwtGenerator) VerifyToken added in v0.1.4

func (d DummyJwtGenerator) VerifyToken(token string) (*domain.Auth, map[string]interface{}, error)

type JwtGenerator

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

func NewJwtGenerator

func NewJwtGenerator() *JwtGenerator

func (JwtGenerator) GenerateToken

func (j JwtGenerator) GenerateToken(auth *domain.Auth, payload map[string]interface{}) (string, error)

func (JwtGenerator) VerifyToken

func (j JwtGenerator) VerifyToken(token string) (*domain.Auth, map[string]interface{}, error)

Jump to

Keyboard shortcuts

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