jwtAuth

package
v0.0.0-...-48bce5c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractToken

func ExtractToken(c *gin.Context) string

func ExtractTokenID

func ExtractTokenID(c *gin.Context) (uint, error)

func ExtractTokenIsAdmin

func ExtractTokenIsAdmin(c *gin.Context) (bool, error)

func GenerateToken

func GenerateToken(userID uint) (string, error)

func TokenValid

func TokenValid(c *gin.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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