1
0
Fork 0
mirror of https://akkoma.dev/AkkomaGang/akkoma-fe synced 2025-07-09 05:07:18 +08:00

Merge branch 'issue-449-auto-token-fetch' into 'develop'

 - fix auth token fetch issue

Closes 

See merge request 
This commit is contained in:
Shpuld Shpludson 2019-03-21 16:12:33 +00:00
commit 66e60572bc

View file

@ -561,7 +561,12 @@ const fetchOAuthTokens = ({credentials}) => {
return fetch(url, {
headers: authHeaders(credentials)
}).then((data) => data.json())
}).then((data) => {
if (data.ok) {
return data.json()
}
throw new Error('Error fetching auth tokens', data)
})
}
const revokeOAuthToken = ({id, credentials}) => {