Skip to content

Commit 900da7b

Browse files
fix: Stop checking for disposable emails when using Google SSO
1 parent 2e12cca commit 900da7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/app/(auth)/sso/google/callback/google-callback.action.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { decodeIdToken } from "arctic";
1010
import { getDB } from "@/db";
1111
import { eq } from "drizzle-orm";
1212
import { userTable } from "@/db/schema";
13-
import { createAndStoreSession, canSignUp } from "@/utils/auth";
13+
import { createAndStoreSession } from "@/utils/auth";
1414
import { isGoogleSSOEnabled } from "@/flags";
1515
import { getIP } from "@/utils/get-IP";
1616

@@ -97,9 +97,6 @@ export const googleSSOCallbackAction = createServerAction()
9797
const avatarUrl = claims.picture;
9898
const email = claims.email;
9999

100-
// Check if email is disposable
101-
await canSignUp({ email });
102-
103100
const db = getDB();
104101

105102
try {
@@ -166,4 +163,3 @@ export const googleSSOCallbackAction = createServerAction()
166163
}
167164
}, RATE_LIMITS.GOOGLE_SSO_CALLBACK);
168165
});
169-

0 commit comments

Comments
 (0)