Documentation ¶
Index ¶
Constants ¶
View Source
const Issuer string = "Apisense WEB-API"
Issuer holds the issuer of the token
Variables ¶
This section is empty.
Functions ¶
func ExtractUidFromHeader ¶
func ExtractUidFromHeader(c *fiber.Ctx) string
ExtractUidFromHeader extracts the uid from the token in the Authorization header
func ExtractUidFromToken ¶
ExtractUidFromToken extracts the uid from a given token
func GenerateToken ¶
GenerateToken generates a new token for the given user
func RefreshToken ¶
RefreshToken takes a valid token and generates a new one from it
func ValidateToken ¶
ValidateToken validates if the given token is valid. Returns the decoded token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.