Skip to content
Snippets Groups Projects
Commit 31be692a authored by Chris Beer's avatar Chris Beer
Browse files

Trust that we should fetch cookies or tokens over the ok-ness of item

parent aabfe19e
No related branches found
No related tags found
No related merge requests found
......@@ -41,14 +41,14 @@ const mapStateToProps = (state, { windowId }) => {
if (!authStatus) {
status = null;
} else if (authStatus.ok) {
status = 'ok';
} else if (authStatus.ok === false) {
status = 'failed';
} else if (authStatus.isFetching) {
if (authStatus.windowId === windowId) status = 'cookie';
} else if (accessTokenStatus && accessTokenStatus.isFetching) {
if (authStatus.windowId === windowId) status = 'token';
} else if (authStatus.ok) {
status = 'ok';
} else if (authStatus.ok === false) {
status = 'failed';
}
const authProfiles = getAuthProfiles(state);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment