#449 - fix auth token fetch issue
This commit is contained in:
parent
0659d2fd3a
commit
db3b48d444
@ -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}) => {
|
||||
|
Loading…
Reference in New Issue
Block a user