-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
The following functions dealing with the OAuth flow inserted the API version into the request url, but it seems this is not desired (as mentioned in a Shopify Partners blog post).
Shopify.OAuth.request_token/2
iex> shopify_domain
...> |> Shopify.session()
...> |> Shopify.OAuth.request_token(shopify_token)
{:error, %Shopify.Response{code: 303, data: nil, headers: ...}}Shopify.OAuth.permission_url/2
iex> shopify_domain
...> |> Shopify.session()
...> |> Shopify.OAuth.permission_url(params)
"....myshopify.com/admin/api/#{api_version}/oauth/authorize?..."This permission url lead to a "page not found" error.
My current workaround is to nullify the API version for these two functions:
session =
shop_name
|> Shopify.session()
|> Shopify.Session.put_api_version(nil)Metadata
Metadata
Assignees
Labels
No labels