authentications

package
v0.0.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

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

func NewAuthentication

func NewAuthentication(secretKey string) *Authentication

func (*Authentication) GenerateJWT

func (auth *Authentication) GenerateJWT(payload map[string]any) (string, error)

func (*Authentication) ValidateJWT

func (auth *Authentication) ValidateJWT(tokenString string) (jwt.MapClaims, error)

type Payload

type Payload map[string]any

Jump to

Keyboard shortcuts

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