Help us shape the future of Go! Take the 2026 Go Developer Survey

jwt

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUidFromHeader

func ExtractUidFromHeader(c *gin.Context) string

func ExtractUidFromToken

func ExtractUidFromToken(token *jwt.Token) string

Types

type JwtService

type JwtService interface {
	GenerateToken(userId string) (string, error)
	ValidateToken(token string) (*jwt.Token, error)
	RefreshToken(token string, userId string) (string, error)
}

func Service

func Service() JwtService

Jump to

Keyboard shortcuts

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