utils

package
v0.0.0-...-228e6a4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser(c *gin.Context) (models.User, error)

func GenerateToken

func GenerateToken(user models.User) (string, error)

func GetToken

func GetToken(c *gin.Context) (*jwt.Token, error)

func ValidateToken

func ValidateToken(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