From 0a82fca6d34329b06a981d7e76a7bcd5381b9b2f Mon Sep 17 00:00:00 2001 From: Sirttas Date: Tue, 28 May 2024 12:53:13 +0200 Subject: [PATCH] open in a new tab --- src/auth.ts | 6 ++++-- src/market/type/MarketTypeLabel.vue | 14 ++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index e9644e8..482a2ed 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,5 +1,5 @@ import log from "loglevel"; -import { Log, User, UserManager } from "oidc-client-ts"; +import { Log, User, UserManager, WebStorageStateStore } from "oidc-client-ts"; import { defineStore } from "pinia"; import { computed, ref } from "vue"; @@ -11,7 +11,9 @@ export const useAuthStore = defineStore('auth', () => { client_id: import.meta.env.VITE_AUTH_CLIENT_ID, client_secret: import.meta.env.VITE_AUTH_CLIENT_SECRET, redirect_uri: import.meta.env.VITE_AUTH_REDIRECT_URI, - scope: import.meta.env.VITE_AUTH_SCOPE + scope: import.meta.env.VITE_AUTH_SCOPE, + stateStore: new WebStorageStateStore({ store: window.localStorage }), + userStore: new WebStorageStateStore({ store: window.localStorage }) }); const user = ref(); diff --git a/src/market/type/MarketTypeLabel.vue b/src/market/type/MarketTypeLabel.vue index a29b6a4..9f2a631 100644 --- a/src/market/type/MarketTypeLabel.vue +++ b/src/market/type/MarketTypeLabel.vue @@ -17,14 +17,12 @@ withDefaults(defineProps(), { \ No newline at end of file