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:
Nan Yu
2022-06-20 01:33:16 -07:00
committed by GitHub
parent 188c1e409b
commit e0d2b6cace
6 changed files with 158 additions and 56 deletions

View File

@@ -9,10 +9,13 @@ export default function Notices() {
return (
<>
{notice === "google-hd" && (
{notice === "domain-required" && (
<NoticeAlert>
Sorry, Google sign in cannot be used with a personal email. Please try
signing in with your Google Workspace account.
Unable to sign-in. Please navigate to your team's custom URL, then try
to sign-in again.
<hr />
If you were invited to a team, you will find a link to it in the
invite email.
</NoticeAlert>
)}
{notice === "maximum-teams" && (
@@ -21,7 +24,7 @@ export default function Notices() {
installation. Try another?
</NoticeAlert>
)}
{notice === "malformed_user_info" && (
{notice === "malformed-user-info" && (
<NoticeAlert>
We could not read the user info supplied by your identity provider.
</NoticeAlert>
@@ -38,7 +41,7 @@ export default function Notices() {
try again in a few minutes.
</NoticeAlert>
)}
{notice === "auth-error" &&
{(notice === "auth-error" || notice === "state-mismatch") &&
(description ? (
<NoticeAlert>{description}</NoticeAlert>
) : (