fix: Improve error handling for Azure-specific errors not captured in OAuth2 strategy

This commit is contained in:
Tom Moor
2021-04-18 22:41:27 -07:00
parent 04b8d7ae7b
commit 317c52df62
6 changed files with 35 additions and 27 deletions

View File

@@ -1,13 +0,0 @@
// @flow
export default function getQueryVariable(variable: string) {
const query = window.location.search.substring(1);
const vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
const pair = vars[i].split("=");
if (pair[0] === variable) {
return pair[1];
}
}
}