Skip to content

Commit

Permalink
Add links to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zzooeeyy committed Oct 4, 2024
1 parent 5b5bc97 commit b21a65f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/shopify_app/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ Using token exchange will ensure that the access token retrieved will always hav
Authorization code grant flow is the OAuth flow that requires the app to redirect the user
to Shopify for installation/authorization of the app to access the shop's data. It is still required for apps that are not embedded.

If your app is not using Shopify managed installation with declared scopes in your `.toml` file, you can change the requested access scopes during OAuth flow
If your app is not using [Shopify managed installation](https://shopify.dev/docs/apps/auth/installation#shopify-managed-installation) with declared scopes in your `.toml` file, you can change the requested access scopes during OAuth flow
by adding the `scope` to your configurations - `ShopifyApp.configuration` & `ShopifyAPI::Context.setup`.


```ruby
# config/initializers/shopify_app.rb

ShopifyApp.configure do |config|
...
config.scope = "read_discounts,write_products"
config.scope = ["read_discounts", "write_products"]
...
end

Expand Down

0 comments on commit b21a65f

Please sign in to comment.