Commit 66e60572 authored by Shpuld Shpludson's avatar Shpuld Shpludson

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

#449 - fix auth token fetch issue

Closes #449

See merge request pleroma/pleroma-fe!696
parents c2b7aff3 db3b48d4
Pipeline #9204 passed with stages
in 3 minutes and 24 seconds
......@@ -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}) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment