remove remaining currentUser.credentials
This commit is contained in:
parent
8c568d3653
commit
4d5fcff514
4 changed files with 12 additions and 11 deletions
|
|
@ -14,6 +14,7 @@ import {
|
|||
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useUsersStore } from 'src/stores/users.js'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { fetchKnownDomains } from 'src/api/public.js'
|
||||
|
||||
|
|
@ -213,7 +214,7 @@ export const useInstanceStore = defineStore('instance', {
|
|||
async getKnownDomains() {
|
||||
try {
|
||||
const { data } = await fetchKnownDomains({
|
||||
credentials: useUsersStore().currentUser.credentials,
|
||||
credentials: useOAuthStore().token
|
||||
})
|
||||
this.knownDomains = data
|
||||
} catch (e) {
|
||||
|
|
|
|||
|
|
@ -854,7 +854,7 @@ export const useInterfaceStore = defineStore('interface', {
|
|||
},
|
||||
|
||||
unregisterPushNotifications() {
|
||||
const token = this.currentUser.credentials
|
||||
const token = useOAuthStore().token
|
||||
|
||||
unregisterPushNotifications(token)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue