diff --git a/apps/web/src/config/auth.ts b/apps/web/src/config/auth.ts index 209ed05..13eb0b2 100644 --- a/apps/web/src/config/auth.ts +++ b/apps/web/src/config/auth.ts @@ -17,7 +17,8 @@ export const authConfig = authConfigSchema.parse({ password: toBool(env.NEXT_PUBLIC_AUTH_PASSWORD, true), magicLink: toBool(env.NEXT_PUBLIC_AUTH_MAGIC_LINK, false), passkey: toBool(env.NEXT_PUBLIC_AUTH_PASSKEY, true), - anonymous: toBool(env.NEXT_PUBLIC_AUTH_ANONYMOUS, true), + // claudemesh requires auth — mesh membership is tied to an account + anonymous: toBool(env.NEXT_PUBLIC_AUTH_ANONYMOUS, false), // v0.1.0: GitHub + Google. Apple deferred until we need it. oAuth: [SocialProvider.GOOGLE, SocialProvider.GITHUB], }, diff --git a/apps/web/src/modules/auth/form/social-providers.tsx b/apps/web/src/modules/auth/form/social-providers.tsx index db3e1a0..d18da15 100644 --- a/apps/web/src/modules/auth/form/social-providers.tsx +++ b/apps/web/src/modules/auth/form/social-providers.tsx @@ -29,6 +29,12 @@ export const SocialIcons: Record = { [SocialProviderType.APPLE]: Icons.Apple, }; +const PROVIDER_LABELS: Record = { + [SocialProviderType.GITHUB]: "GitHub", + [SocialProviderType.GOOGLE]: "Google", + [SocialProviderType.APPLE]: "Apple", +}; + const SocialProvider = ({ provider, isSubmitting, @@ -49,7 +55,7 @@ const SocialProvider = ({ variant="outline" type="button" size="lg" - className="relative grow basis-28 gap-2" + className="relative w-full justify-center gap-2" disabled={isSubmitting} onClick={onClick} > @@ -58,7 +64,9 @@ const SocialProvider = ({ ) : ( <> - {provider} + + Continue with {PROVIDER_LABELS[provider]} + )}