diff --git a/src/stores/bookmark_folders.js b/src/stores/bookmark_folders.js index 6ffec807b..713a21d00 100644 --- a/src/stores/bookmark_folders.js +++ b/src/stores/bookmark_folders.js @@ -27,8 +27,8 @@ export const useBookmarkFoldersStore = defineStore('bookmarkFolders', { }, actions: { startFetching() { - promiseInterval(() => { - this.fetcher = fetchBookmarkFolders({ + this.fetcher = promiseInterval(() => { + fetchBookmarkFolders({ credentials: useOAuthStore().token, }) .then(({ data: folders }) => this.setBookmarkFolders(folders)) diff --git a/src/stores/lists.js b/src/stores/lists.js index 7634f1061..37471d46e 100644 --- a/src/stores/lists.js +++ b/src/stores/lists.js @@ -34,8 +34,8 @@ export const useListsStore = defineStore('lists', { }, actions: { startFetching() { - promiseInterval(() => { - this.fetcher = fetchLists({ + this.fetcher = promiseInterval(() => { + fetchLists({ credentials: useOAuthStore().token, }) .then(({ data: lists }) => this.setLists(lists))