# Functions
Authenticator is a default authentication middleware to enforce access from the Verifier middleware request context values.
EpochNow is a helper function that returns the NumericDate time value used by the spec.
ErrorReason will normalize the error message from the underlining jwt library.
ExpireIn is a helper function to return calculated time in the future for "exp" claim.
No description provided by the author
No description provided by the author
No description provided by the author
SetExpiry sets expiry ("exp") in the claims.
SetExpiryIn sets expiry ("exp") in the claims to some duration from the present time.
SetIssuedAt sets issued at ("iat") to specified time in the claims.
SetIssuedNow sets issued at ("iat") to present time in the claims.
TokenFromCookie tries to retrieve the token string from a cookie named "jwt".
TokenFromHeader tries to retrieve the token string from the "Authorization" reqeust header: "Authorization: BEARER T".
TokenFromQuery tries to retrieve the token string from the "jwt" URI query parameter.
UnixTime returns the given time in UTC milliseconds.
Verifier http middleware handler will verify a JWT string from a http request.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author