feat: allow personal gmail accounts to be used to sign into teams with an existing invite (#3652)
* feat: allow personal gmail accounts to be used to sign into teams with an existing invite * address comments * add comment for appDomain * address comments
This commit is contained in:
@@ -128,11 +128,21 @@ export function MicrosoftGraphError(
|
||||
});
|
||||
}
|
||||
|
||||
export function GoogleWorkspaceRequiredError(
|
||||
message = "Google Workspace is required to authenticate"
|
||||
export function TeamDomainRequiredError(
|
||||
message = "Unable to determine team from current domain or subdomain"
|
||||
) {
|
||||
return httpErrors(400, message, {
|
||||
id: "google_hd",
|
||||
id: "domain_required",
|
||||
});
|
||||
}
|
||||
|
||||
export function AuthRedirectError(
|
||||
message = "Redirect to the correct domain after authentication",
|
||||
redirectUrl: string
|
||||
) {
|
||||
return httpErrors(400, message, {
|
||||
id: "auth_redirect",
|
||||
redirectUrl,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user