utils

package
v0.0.0-...-c9003b7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidRefreshToken = fiber.NewError(fiber.StatusBadRequest, "invalid refresh token")

Functions

func GenerateAccessToken

func GenerateAccessToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string

func GenerateFactorsToken

func GenerateFactorsToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string

func GenerateRecoveryCode

func GenerateRecoveryCode(nb int) (codes []string)

func GenerateRefreshToken

func GenerateRefreshToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string

func GetLoginFromRefreshToken

func GetLoginFromRefreshToken(token string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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