Skip to content
Snippets Groups Projects
Unverified Commit a173174b authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3289 from ProjectMirador/auth-status

Trust that we should fetch cookies or tokens over the ok-ness of item
parents 1415d2e0 31be692a
Branches
Tags
No related merge requests found
...@@ -41,14 +41,14 @@ const mapStateToProps = (state, { windowId }) => { ...@@ -41,14 +41,14 @@ const mapStateToProps = (state, { windowId }) => {
if (!authStatus) { if (!authStatus) {
status = null; status = null;
} else if (authStatus.ok) {
status = 'ok';
} else if (authStatus.ok === false) {
status = 'failed';
} else if (authStatus.isFetching) { } else if (authStatus.isFetching) {
if (authStatus.windowId === windowId) status = 'cookie'; if (authStatus.windowId === windowId) status = 'cookie';
} else if (accessTokenStatus && accessTokenStatus.isFetching) { } else if (accessTokenStatus && accessTokenStatus.isFetching) {
if (authStatus.windowId === windowId) status = 'token'; if (authStatus.windowId === windowId) status = 'token';
} else if (authStatus.ok) {
status = 'ok';
} else if (authStatus.ok === false) {
status = 'failed';
} }
const authProfiles = getAuthProfiles(state); 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