def jwt_is_expired(self, access_token=None, leeway=<NUM_LIT:0>):
if access_token is not None:<EOL><INDENT>exp = self._decode_exp(access_token)<EOL><DEDENT>else:<EOL><INDENT>exp = self.jwt_exp<EOL><DEDENT>now = time()<EOL>if exp < (now - leeway):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Validate JWT access token expiration.

        Args:
            access_token (str): Access token to validate. Defaults to ``None``.
            leeway (float): Time in seconds to adjust for local clock skew. Defaults to 0.

        Returns:
            bool: ``True`` if expired, otherwise ``False``.