def METHOD_NAME(self):
    settings = get_settings()
    keyset = get_keyset()
    kid = "2aedafba-8170-4064-b704-ce92b7c89cc6"
    key = keyset.get_key(kid)
    exp_time = round(time.time()) - 1000
    for user_id_field in settings['USER_ID_FIELDS']:
        token = jwt.JWT(header={"kid": kid, "alg": "ES256"},
                        claims={'exp': exp_time, user_id_field: 'test@test.com'})
        token.make_signed_token(key)
        bearer = 'Bearer {}'.format(token.serialize())
        with self.assertRaises(AuthenticationFailed) as cm:
            decoded_claims, user_id = JWTAccessToken.token_data(bearer, True)
        e = cm.exception
        self.assertTrue(str(e).startswith('API auth problem: token expired'))