jwt

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJwtTokenString

func GenerateJwtTokenString(id string, login string, teamIds []string, key string, exp time.Time) (string, error)

Types

type PayloadUser

type PayloadUser struct {
	Id    string   `json:"id"`
	Login string   `json:"login"`
	Teams []string `json:"teams"`
}

func ParseTokenString

func ParseTokenString(tokenString, key string) (*PayloadUser, error)

Jump to

Keyboard shortcuts

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