Skip to content

Commit

Permalink
add alert for OAuth auth-info fetch failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Apr 29, 2020
1 parent 3d9baa2 commit 119b9ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boilerplate/app/modules/login/login.sagas.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export function * login (api) {
}
} else {
yield put(LoginActions.loginFailure((authInfo.data && authInfo.data.detail) || 'Could not connect to OAuth2 Provider'))
if (!authInfo.data) {
alert('Failed to fetch Auth Provider information from the backend API.')
}
}
}
Expand Down

0 comments on commit 119b9ac

Please sign in to comment.