Shopify / shopify-app-template-php

285 stars 92 forks source link

Different scopes #425

Open sebastianpisula opened 1 year ago

sebastianpisula commented 1 year ago

I have an application that performs certain tasks. It requires the following permissions:

write_shipping read_orders write_orders As the app develops and new plans with new functionalities are added, the application requires additional permissions:

write_content However, when executing the code: $session = Utils::loadOfflineSession(''); we will not get a session. The problem arises from the fact that in Session::isValid(), we verify the scopes that are stored in the db with the scopes from the configuration file: Context::$SCOPES->equals($this->scope) Should these be related to each other and should this validation be performed?

WilRyan commented 1 year ago

Check you db schema. It maybe truncating the scopes when stored