From b84ca0d4ab5e4c3e4c814f6452a02869a58bfd2f Mon Sep 17 00:00:00 2001 From: JOY <5027251+JOY@users.noreply.github.com> Date: Sun, 23 Aug 2026 21:32:10 +0700 Subject: [PATCH] fix(auth): add emailVerified in OIDC profile callback and brand app name in login title Co-authored-by: Cursor --- apps/web/modules/auth/login-view.tsx | 4 +++- packages/features/auth/lib/next-auth-options.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/modules/auth/login-view.tsx b/apps/web/modules/auth/login-view.tsx index bc712ad022bc7b..0d8e73d9dde6bc 100644 --- a/apps/web/modules/auth/login-view.tsx +++ b/apps/web/modules/auth/login-view.tsx @@ -194,7 +194,9 @@ export default function Login({
{/* Logo */}
-

Cal.diy

+

+ {process.env.NEXT_PUBLIC_APP_NAME || "Crove"} +

{/* Heading */} diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index bd11832bf70533..04d7e9de9e179f 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -341,6 +341,7 @@ export const getProviders = (): Provider[] => { profile(profile: { sub: string; email?: string; + email_verified?: boolean; name?: string; picture?: string; avatar_url?: string; @@ -350,6 +351,7 @@ export const getProviders = (): Provider[] => { id: profile.sub, name: profile.name || profile.email?.split("@")[0] || "User", email: profile.email, + emailVerified: profile.email_verified ?? true, image: profile.picture || profile.avatar_url || null, organizations: profile.organizations, } as unknown as User;