Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse prepends the algorithm string to a shortened token, if needed. If the token is not shortened, just parse and verify it, and return the parsed data.
Example parsing of returned claims: td.IAT = int64(claims["iat"].(float64)) claimsData := claims["data"].(map[string]interface{}) td.ID = int64(claimsData["id"].(float64)) td.Name = claimsData["name"].(string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.