Shoplo / store-client

0 stars 2 forks source link

example #2

Open karol-pietrzak opened 3 years ago

karol-pietrzak commented 3 years ago

Your example seems to be not working. Its throwing {"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorizatio (truncated...)

Could you help me with that ?

am i right that docs says that i should be asking for access_token here services/oauth/access_token and sso-auth package is asking services/oauth/token ?

i was trying to debug by myself there but hit the wall

Also i think urls should be .com instead .io

AdrianAdamiec commented 3 years ago

unsupported_grant_type - you should check your app permissions in the partners system. If you are changing permissions please remember to generate new access token. We have two ways how you can authorize. The old way which is written in our docs based on oauth1.1 and the new one based on our sso system. Store client sdk uses sso authorization(https://github.com/Shoplo/sso-auth) and we recommend using it.

You're right urls should end with .com and we'll fix it.

If you still have a problem with connecting with our api please write to us on help@shoplo.com and attach an example of code that you are using.