Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func PrivateKey ¶
func PrivateKey() *rsa.PrivateKey
Types ¶
type TokenMetadata ¶
TokenMetadata struct to describe metadata in JWT.
func ExtractMetadata ¶
func ExtractMetadata(tokenKey string) (*TokenMetadata, error)
ExtractMetadata func to extract metadata from JWT.
func ExtractMetadataFiber ¶
func ExtractMetadataFiber(c *fiber.Ctx) (*TokenMetadata, error)
ExtractMetadataFiber extracts the metadata from a JWT token within a Fiber context.
Click to show internal directories.
Click to hide internal directories.