We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2583bde commit daf1b62Copy full SHA for daf1b62
packages/vue-auth/src/stores/vue-auth.ts
@@ -20,7 +20,11 @@ axios.defaults.headers.common['Content-Type'] = 'application/json; charset=utf-8
20
axios.defaults.headers.common['Accept'] = 'application/json'
21
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'
22
23
-export function createVueAuthStore<UA = unknown>(storageOptions?: StorageOptions) {
+export function createVueAuthStore<UA = unknown>(options?: StorageOptions) {
24
+ const storageOptions = Object.fromEntries(
25
+ Object.entries(options ?? {}).filter(([key]) => !['plugins', 'skipInit'].includes(key))
26
+ )
27
+
28
return defineStore(
29
'vue-auth',
30
() => {
0 commit comments