Documentation
¶
Overview ¶
Package jwt provides means of obtaining more info from JWT tokens
Index ¶
- func Claims(token string) (map[string]interface{}, error)
- func ContractNumber(claims map[string]interface{}) (int64, error)
- func Headers(token string) (map[string]interface{}, error)
- func Kid(headers map[string]interface{}) (string, error)
- func Privileges(claims map[string]interface{}) ([]string, error)
- func Role(claims map[string]interface{}) (string, error)
- func Username(token string) (string, error)
- func Uuid(claims map[string]interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractNumber ¶ added in v6.6.6
ContractNumber extracts contract number from JWT token claims
func Privileges ¶ added in v6.6.6
Privileges extracts privileges from JWT token claims
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.