这是用sqlite sessionStorage
设置商店的正确方法吗?
const storage = new SQLiteSessionStorage(DB_PATH)
const shopify = shopifyApp({
api: {
apiVersion: LATEST_API_VERSION,
restResources,
billing: undefined, // or replace with billingConfig above to enable example billing
scopes: ['write_products', 'read_locales'],
},
auth: {
path: '/api/auth',
callbackPath: '/api/auth/callback',
},
webhooks: {
path: '/api/webhooks',
},
sessionStorage: storage,
});
export default shopify;
如果是,我如何从我的应用程序的任何地方访问此会话?
1条答案
按热度按时间33qvvth11#
例如: