[dyad] Removed custom auth provider to fix build - wrote 1 file(s)
This commit is contained in:
@@ -5,8 +5,6 @@ import { Auth } from "@supabase/auth-ui-react";
|
||||
import { ThemeSupa } from "@supabase/auth-ui-shared";
|
||||
import { useEffect } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { KeyRound } from "lucide-react";
|
||||
import type { AuthChangeEvent, Session } from "@supabase/supabase-js";
|
||||
|
||||
export default function LoginPage() {
|
||||
@@ -22,12 +20,6 @@ export default function LoginPage() {
|
||||
return () => subscription.unsubscribe();
|
||||
}, [router]);
|
||||
|
||||
const handleOidcSignIn = async () => {
|
||||
await supabase.auth.signInWithOAuth({
|
||||
provider: 'pocket_id',
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-screen bg-background">
|
||||
<div className="w-full max-w-md p-8 space-y-8">
|
||||
@@ -41,22 +33,8 @@ export default function LoginPage() {
|
||||
providers={[]}
|
||||
theme="dark"
|
||||
view="sign_in"
|
||||
showLinks={false}
|
||||
showLinks={true}
|
||||
/>
|
||||
<div className="relative">
|
||||
<div className="absolute inset-0 flex items-center">
|
||||
<span className="w-full border-t" />
|
||||
</div>
|
||||
<div className="relative flex justify-center text-xs uppercase">
|
||||
<span className="bg-background px-2 text-muted-foreground">
|
||||
Or continue with
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<Button variant="outline" className="w-full" onClick={handleOidcSignIn}>
|
||||
<KeyRound className="mr-2 h-4 w-4" />
|
||||
Sign in with Pocket ID
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user