auth

package
v0.0.0-...-bbd85db Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userId string) (string, error)

func ExtractToken

func ExtractToken(c *gin.Context) string

func ExtractUserId

func ExtractUserId(token *jwt.Token) (int, error)

func ParseToken

func ParseToken(tokenString string) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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