auth

package
v0.0.0-...-35669d6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretKey = []byte(os.Getenv("JWT_KEY"))
)

Functions

func CurrentUser

func CurrentUser(c *fiber.Ctx, claims *jwt.RegisteredClaims) error

func GetJwtToken

func GetJwtToken(user string) (string, string, int)

func GetUserByEmail

func GetUserByEmail(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func RefreshToken

func RefreshToken(c *fiber.Ctx) error

func Signup

func Signup(c *fiber.Ctx) error

func VerifyJwtSess

func VerifyJwtSess(token string) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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