We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4958d78 + 7cf89c6 commit 55cf72fCopy full SHA for 55cf72f
src/lib/auth-options.ts
@@ -44,7 +44,7 @@ export const authOptions: NextAuthOptions = {
44
const emailPrefix = profile.email.split("@")[0];
45
46
// Define BE and MBA patterns
47
- const isBEEmail = /^[2][1-4]\d{3}\..+$/; // Matches 21XXXX, 22XXXX, 23XXXX, 24XXXX for BE
+ const isBEEmail = /^[2][1-4][a-z]?\d{2}\..+$/;
48
const isMBAEmail = /^[2][3-4]ba\d{3}\..+$/; // Matches 23baXXX, 24baXXX for MBA
49
const isMCAEmail = /^[2][3-4]ca\d{3}\..+$/; // Matches 23maXXX, 24maXXX for MCA
50
0 commit comments