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:
@@ -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"
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user