fix: refactor auth flow to explicitly pass in a host (#3909)

* fix: refactor auth flow to explicitly pass in a host

* add new error handler to all SSO providers

* refactor passport error into middleware
This commit is contained in:
Nan Yu
2022-08-04 05:00:52 -04:00
committed by GitHub
parent 0a6cfe5a6a
commit 74d9409cc3
4 changed files with 38 additions and 42 deletions

View File

@@ -161,16 +161,6 @@ export function GmailAccountCreationError(
});
}
export function AuthRedirectError(
message = "Redirect to the correct domain after authentication",
redirectUrl: string
) {
return httpErrors(400, message, {
id: "auth_redirect",
redirectUrl,
});
}
export function OIDCMalformedUserInfoError(
message = "User profile information malformed"
) {