Documentation ¶
Index ¶
- Variables
- func GenerateAccessToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string
- func GenerateFactorsToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string
- func GenerateRecoveryCode(nb int) (codes []string)
- func GenerateRefreshToken(ctx context.Context, c *fiber.Ctx, cfg services.Configer, login string) string
- func GetLoginFromRefreshToken(token string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidRefreshToken = fiber.NewError(fiber.StatusBadRequest, "invalid refresh token")
Functions ¶
func GenerateAccessToken ¶
func GenerateFactorsToken ¶
func GenerateRecoveryCode ¶
func GenerateRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.