Skip to content

Intercept 401 errors, pop up a login window that closes when successful.#2851

Merged
mkimberlin merged 3 commits intodevelopfrom
bugfix-2782/unauthorized-errors
Feb 5, 2025
Merged

Intercept 401 errors, pop up a login window that closes when successful.#2851
mkimberlin merged 3 commits intodevelopfrom
bugfix-2782/unauthorized-errors

Conversation

@ocielliottc
Copy link
Collaborator

No description provided.

@ocielliottc ocielliottc linked an issue Jan 29, 2025 that may be closed by this pull request
1 task
}, 1000);
});
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is only workable for localhost, isn't it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it works elsewhere because the URL doesn't really matter (except for our route match to close the window). In production, it will see that the JWT has expired (or doesn't exist) and will make the user pick their google account to use.

@mkimberlin
Copy link
Member

I've never been so excited to see if something works. 🤣

@mkimberlin mkimberlin merged commit 3f5563a into develop Feb 5, 2025
2 of 4 checks passed
@mkimberlin mkimberlin deleted the bugfix-2782/unauthorized-errors branch February 5, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The riddle of the Unauthorized errors...Part 2

2 participants