diff --git a/src/main.ts b/src/main.ts index 778adee..cc66531 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,11 +29,7 @@ const config: LogtoConfig = { endpoint: END_POINT, appId: APP_ID, }; -app.use(createLogto, { - ...config, - scopes: ['shopping:read', 'shopping:write', 'store:read', 'store:write'], - resources: [import.meta.env.VITE_API_BASE_URL], -}); +app.use(createLogto, config); app.use(pinia); app.use(router); diff --git a/src/views/login/OauthCallBack.vue b/src/views/login/OauthCallBack.vue index 8a62cc0..fe21a64 100644 --- a/src/views/login/OauthCallBack.vue +++ b/src/views/login/OauthCallBack.vue @@ -5,35 +5,33 @@