Skip to content
Snippets Groups Projects
Commit db3b48d4 authored by Dave LiPuma's avatar Dave LiPuma
Browse files

#449 - fix auth token fetch issue

parent 0659d2fd
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!696#449 - fix auth token fetch issue
......@@ -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}) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment