From f7f577af54dd704656f978bf392b203f216c6a98 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Mon, 7 Jul 2025 00:26:50 +0000
Subject: fix: Drop the need to for the self-call for providers and
 NEXTAUTH_INTERNAL_URL

---
 apps/web/components/signin/SignInForm.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'apps/web/components/signin/SignInForm.tsx')

diff --git a/apps/web/components/signin/SignInForm.tsx b/apps/web/components/signin/SignInForm.tsx
index 07e921b0..ca8f3137 100644
--- a/apps/web/components/signin/SignInForm.tsx
+++ b/apps/web/components/signin/SignInForm.tsx
@@ -1,4 +1,4 @@
-import { getProviders } from "next-auth/react";
+import { authOptions } from "@/server/auth";
 
 import serverConfig from "@karakeep/shared/config";
 
@@ -6,7 +6,7 @@ import CredentialsForm from "./CredentialsForm";
 import SignInProviderButton from "./SignInProviderButton";
 
 export default async function SignInForm() {
-  const providers = await getProviders();
+  const providers = authOptions.providers;
   let providerValues;
   if (providers) {
     providerValues = Object.values(providers).filter(
@@ -36,7 +36,9 @@ export default async function SignInForm() {
           <div className="space-y-2">
             {providerValues.map((provider) => (
               <div key={provider.id}>
-                <SignInProviderButton provider={provider} />
+                <SignInProviderButton
+                  provider={{ id: provider.id, name: provider.name }}
+                />
               </div>
             ))}
           </div>
-- 
cgit v1.2.3-70-g09d2

