auth

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userId string, secret string, expires *time.Time) (string, error)

func ParseToken

func ParseToken(token string, secret string) (string, error)

Types

type UserClaims

type UserClaims struct {
	UserId string `json:"userId"`
	jwt.RegisteredClaims
}

type UserContext

type UserContext struct {
	Id string
}

Jump to

Keyboard shortcuts

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