Skip to content

Commit

Permalink
Add test stub for token exchange auth
Browse files Browse the repository at this point in the history
  • Loading branch information
zzooeeyy committed Aug 19, 2024
1 parent a312ce9 commit fb4dd79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Unreleased
----------
* Add the `unified_admin_domain` configuration option for the unified admin domain.
- Add new generators for webhook subscriptions defined in the `shopify.app.toml` file [1882](https://github.com/Shopify/shopify_app/pull/1882)
- Fix test stubbing for Token Exchange auth

22.3.1 (July 26, 2024)
----------
Expand Down
1 change: 1 addition & 0 deletions lib/shopify_app/test_helpers/shopify_session_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def setup_shopify_session(session_id:, shop_domain:)
ShopifyAPI::Auth::Session.new(id: session_id, shop: shop_domain).tap do |session|
ShopifyApp::SessionRepository.stubs(:load_session).returns(session)
ShopifyAPI::Utils::SessionUtils.stubs(:current_session_id).returns(session.id)
ShopifyAPI::Utils::SessionUtils.stubs(:session_id_from_shopify_id_token).returns(session.id)
ShopifyAPI::Context.activate_session(session)
end
end
Expand Down

0 comments on commit fb4dd79

Please sign in to comment.