utils

package
v0.0.0-...-f01a2d2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(c *fiber.Ctx) (bool, error)

func CreateFaker

func CreateFaker[T any]() (T, error)

func GenerateNewAccessToken

func GenerateNewAccessToken() (string, error)

func GetValue

func GetValue(key string) string

Types

type TokenMetadata

type TokenMetadata struct {
	Expires int64
}

func ExtractTokenMetadata

func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error)

Jump to

Keyboard shortcuts

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