Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InactiveIntrospectionBytes = []byte(`{"active":false}`)
InactiveIntrospectionBytes contains the standard introspection for an inactive token
Functions ¶
func IsActive ¶
IsActive returns true if the given introspection bytes indicate that the token is active
func ValidNow ¶
ValidNow returns true if the expired and not before claims indicate that the token is valid for the current local time. From RFC7519:
processing of the "exp" claim requires that the current date/time MUST be before the expiration date/time listed in the "exp" claim processing of the "nbf" claim requires that the current date/time MUST be after or equal to listed in the "nbf" claim
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.