diff --git a/flask_oidc/__init__.py b/flask_oidc/__init__.py index 6ea1520..a68d05f 100644 --- a/flask_oidc/__init__.py +++ b/flask_oidc/__init__.py @@ -439,6 +439,10 @@ def authenticate_or_redirect(self): logger.debug("Expired ID token, credentials missing", exc_info=True) return self.redirect_to_auth_server(request.url) + except ValueError: + logger.debug("Credentials missing", + exc_info=True) + return self.redirect_to_auth_server(request.url) # refresh and store credentials try: