Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTLifetime ¶
GetJWTLifetime returns the issued at(iat) and expiration time(exp) claims present in the JWT token. These are optional claims and may not be present in the token. Absence is not reported as an error.
An error is returned if the supplied token is malformed. Times are returned in UTC to have parity with graph responses.
func IsJWTExpired ¶
IsJWTExpired checks if the JWT token is past expiry by analyzing the "exp" claim present in the token. Token is considered expired if "exp" claim < current time. Missing "exp" claim is considered as non-expired. An error is returned if the supplied token is malformed.
Types ¶
This section is empty.