You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Hi @axmachina, thank you for bringing this up. I've moved this issue to the shopify-node-api repo to help us keep track of it - this is where the underlying issue is, and we're currently working on a solution.
Issue summary
This fails when session is present with scope undefined.
``
if (session) {
const scopesChanged = !Shopify.Context.SCOPES.equals(session.scope);
``
Expected behavior
Should invalidate session and initiate oauth.
Actual behavior
What actually happens?
The failure happens downstream in shopify api,
TypeError: Cannot read property 'map' of undefined at new AuthScopes (/node_modules/@shopify/shopify-api/dist/auth/scopes/index.js:14:35)
Steps to reproduce the problem
I'm unable to reproduce this reliably, but can manually remove scope from session to test.
The text was updated successfully, but these errors were encountered: