fix revoking tokens

This commit is contained in:
Henry Jameson 2026-06-22 16:13:30 +03:00
commit bf86f03a0a
2 changed files with 3 additions and 1 deletions

View file

@ -106,6 +106,8 @@ export const promisedRequest = async ({
.get('content-type')
.split(';')
.map((x) => x.toLowerCase().trim())
const contentLength = parseInt(response.headers.get('content-length'))
if (contentLength === 0) return null
switch (contentType) {
case 'text/plain':

View file

@ -12,7 +12,7 @@ export const useOAuthTokensStore = defineStore('oauthTokens', {
fetchTokens() {
fetchOAuthTokens({
credentials: useOAuthStore().token,
}).then((tokens) => {
}).then(({ data: tokens }) => {
this.swapTokens(tokens)
})
},