jwt

package
v0.0.0-...-51970bc Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 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