diff --git a/apps/webapp/.env.example b/apps/webapp/.env.example
index 8c6a0d0f9..abdcda1ff 100644
--- a/apps/webapp/.env.example
+++ b/apps/webapp/.env.example
@@ -15,8 +15,6 @@ APP_ORIGIN=http://localhost:3000
NODE_ENV=development
-PULSAR_ENABLED=1
-
SESSION_SECRET=
@@ -25,9 +23,9 @@ SESSION_SECRET=
# ************************************* LOGIN *******************************************
#########################################################################################
-GITHUB_CLIENT_ID=
+AUTH_GITHUB_CLIENT_ID=
-GITHUB_SECRET=
+AUTH_GITHUB_CLIENT_SECRET=
LOGIN_ORIGIN=http://localhost:3000
diff --git a/apps/webapp/app/components/stories/Forms.stories.tsx b/apps/webapp/app/components/stories/Forms.stories.tsx
index baa276af9..e5602382f 100644
--- a/apps/webapp/app/components/stories/Forms.stories.tsx
+++ b/apps/webapp/app/components/stories/Forms.stories.tsx
@@ -128,7 +128,7 @@ function LoginForm() {
Continue with Email
- By connecting your GitHub account you agree to our{" "}
+ By creating an account you agree to our{" "}
terms and{" "}
privacy policies.
diff --git a/apps/webapp/app/env.server.ts b/apps/webapp/app/env.server.ts
index 70ce601af..8a296437e 100644
--- a/apps/webapp/app/env.server.ts
+++ b/apps/webapp/app/env.server.ts
@@ -29,8 +29,8 @@ const EnvironmentSchema = z.object({
SECRET_STORE: SecretStoreOptionsSchema.default("DATABASE"),
POSTHOG_PROJECT_KEY: z.string().optional(),
MAGIC_LINK_SECRET: z.string(),
- GITHUB_CLIENT_ID: z.string(),
- GITHUB_SECRET: z.string(),
+ AUTH_GITHUB_CLIENT_ID: z.string().optional(),
+ AUTH_GITHUB_CLIENT_SECRET: z.string().optional(),
FROM_EMAIL: z.string(),
REPLY_TO_EMAIL: z.string(),
RESEND_API_KEY: z.string(),
diff --git a/apps/webapp/app/routes/login._index/route.tsx b/apps/webapp/app/routes/login._index/route.tsx
index b5dee4932..0ec93f8e3 100644
--- a/apps/webapp/app/routes/login._index/route.tsx
+++ b/apps/webapp/app/routes/login._index/route.tsx
@@ -11,6 +11,7 @@ import { Fieldset } from "~/components/primitives/Fieldset";
import { FormTitle } from "~/components/primitives/FormTitle";
import { NamedIcon } from "~/components/primitives/NamedIcon";
import { Paragraph, TextLink } from "~/components/primitives/Paragraph";
+import { isGithubAuthSupported } from "~/services/auth.server";
import { commitSession, setRedirectTo } from "~/services/redirectTo.server";
import { getUserId } from "~/services/session.server";
@@ -26,7 +27,7 @@ export async function loader({ request }: LoaderArgs) {
const session = await setRedirectTo(request, redirectTo);
return typedjson(
- { redirectTo },
+ { redirectTo, isGithubAuthSupported },
{
headers: {
"Set-Cookie": await commitSession(session),
@@ -34,7 +35,7 @@ export async function loader({ request }: LoaderArgs) {
}
);
} else {
- return typedjson({ redirectTo: null });
+ return typedjson({ redirectTo: null, isGithubAuthSupported });
}
}
@@ -63,10 +64,12 @@ export default function LoginPage() {