php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

How can I update access token with adding new scope

Open zorem opened this issue 5 years ago • 2 comments

I need to update the access token with updating scopes. I don't want to do this process on the install process. I already have app installed and I just want to update the access token with new scopes.

zorem avatar Feb 18 '20 06:02 zorem

You need to "re-authorize" your app. As per this library, the steps are the same as installing.

tareqtms avatar Feb 18 '20 08:02 tareqtms

Hi, after changing scope re-authorize page is not opening, getting the error.

Refused to display 'https://ashadstore.myshopify.com/admin/oauth/request_grant?client_id=9435dfb63eb24dd460c5b3268ac25023&redirect_uri=https%3A%2F%2Fshopify.sendato.local%2Fauth%2FaccessToken&scope=read_customers%2Cread_products%2Cwrite_products%2Cread_orders%2Cwrite_price_rules' in a frame because it set 'X-Frame-Options' to 'deny'.

i am using phpclassic/[email protected].

Could you please guide me to fixed the problem?

Note:- if i do install app again then it is working fine but i am worried when my will go to live and if required to change scope then how app installed user will get ride of this issue without manuall installing app again.

ashad-zaman avatar Mar 19 '20 12:03 ashad-zaman