Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
The Init module sets the package-level configuration named "config". This "config" will be used for token issuance and parsing in the subsequent parts of this package.
func Parse ¶
Parse uses the specified key 'key' to parse the token. If the parsing is successful, it returns the token context; otherwise, an error is reported.
func ParseRequest ¶
ParseRequest retrieves the token from the request header and passes it to the Parse function for token parsing.
Types ¶
Click to show internal directories.
Click to hide internal directories.