auth

package
v0.0.0-...-dcfd991 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(c echo.Context, secretJWT string, userID int, role string, username string, expHour int) (string, error)

func ExtractTokenUserId

func ExtractTokenUserId(c echo.Context) (int, string)

func IdentifyUserUsingJWTToken

func IdentifyUserUsingJWTToken(c echo.Context, cfg *configs.Config, tokenStr string) (role string, username string, authorized bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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