Get rid of Auth. Just use Shopify.Session.MongoDBSessionStorage
The solution is from another dev in Discord:
https://discord.com/channels/842813079926603828/851506171377614858/1001542244207169657
Issue: Developers encountered a TypeError: Cannot read properties of undefined (reading 'MongoDBSessionStorage') when configuring MongoDB session storage for Shopify apps.
Root Cause: The error stems from an incorrect import path in the Shopify API library. Users were attempting to access Shopify.Auth.Session.MongoDBSessionStorage, which doesn’t exist in certain library versions.
Solution: Remove Auth from the path:
Shopify.Auth.Session.MongoDBSessionStorageShopify.Session.MongoDBSessionStorageAdditional Context:
@shopify/shopify-app-session-storage-mongodb)Get rid of Auth. Just use Shopify.Session.MongoDBSessionStorage
The solution is from another dev in Discord:
https://discord.com/channels/842813079926603828/851506171377614858/1001542244207169657