mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-09 07:42:39 +02:00
feat(try): docker registration fix
This commit is contained in:
parent
7b0b0d109c
commit
6d20c54afb
5 changed files with 39 additions and 8 deletions
|
|
@ -8,6 +8,7 @@ import { Suspense, useEffect, useState } from "react";
|
|||
import { toast } from "sonner";
|
||||
import { Logo } from "@/components/Logo";
|
||||
import { getAuthErrorDetails, shouldRetry } from "@/lib/auth-errors";
|
||||
import { AUTH_TYPE } from "@/lib/env-config";
|
||||
import { AmbientBackground } from "./AmbientBackground";
|
||||
import { GoogleLoginButton } from "./GoogleLoginButton";
|
||||
import { LocalLoginForm } from "./LocalLoginForm";
|
||||
|
|
@ -82,8 +83,8 @@ function LoginContent() {
|
|||
});
|
||||
}
|
||||
|
||||
// Get the auth type from environment variables
|
||||
setAuthType(process.env.NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE || "GOOGLE");
|
||||
// Get the auth type from centralized config
|
||||
setAuthType(AUTH_TYPE);
|
||||
setIsLoading(false);
|
||||
}, [searchParams, t, tCommon]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue