Documentation
¶
Index ¶
Constants ¶
View Source
const IntZero = 0
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
ComparePasswords func for a comparing password.
func GeneratePassword ¶
GeneratePassword func for a making hash & salt with user password.
func NormalizePassword ¶
NormalizePassword func for a returning the users input as a byte slice.
func ParseRefreshToken ¶
ParseRefreshToken func for parse second argument from refresh token.
Types ¶
type TokenMetadata ¶
type TokenMetadata struct { UserID string Email string UserRole types.UserRole AdditionalDetails map[string]interface{} Expires int64 }
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error)
Click to show internal directories.
Click to hide internal directories.