Skip to content

Commit

Permalink
Ignore KeyError
Browse files Browse the repository at this point in the history
Shopify UI extensions send tokens without iss key. To prevent the middleware from raising exceptions for these requests we're now ignoring missing iss key.
  • Loading branch information
stlk committed Jun 13, 2024
1 parent 73fb6bf commit d16be82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shopify_auth/session_tokens/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def get_user(token):
JWTClaimsError,
AssertionError,
ObjectDoesNotExist,
KeyError,
) as e:
logging.warning(f"Login user failed: {e}.")

Expand Down

0 comments on commit d16be82

Please sign in to comment.