Skip to content

Commit

Permalink
fix: setup session with creds before requesting token [CU-37q6frk] (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchez authored Dec 22, 2022
1 parent c221199 commit 3ea5aed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shopify_integration/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def callback(*args, **kwargs):
kwargs.pop("cmd")

session = ShopifySession(shopify_settings.shopify_url, shopify_settings.api_version)
session.setup(
api_key=connected_app.client_id,
secret=connected_app.get_password("client_secret"),
)

access_token = session.request_token(kwargs)
token_cache = token_cache.update_data(
{
Expand Down

0 comments on commit 3ea5aed

Please sign in to comment.