mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 13:34:28 +08:00
37 lines
885 B
JavaScript
37 lines
885 B
JavaScript
import React from 'react'
|
|
import { AuthRedirect } from '../hooks/authUser'
|
|
import { supabase } from '../utils/initSupabase'
|
|
import { Auth, Card, Typography, Space } from '@supabase/ui'
|
|
|
|
import Head from '../components/Head'
|
|
import Header from '../components/Header'
|
|
|
|
const AuthPage = () => {
|
|
AuthRedirect()
|
|
|
|
return (
|
|
<>
|
|
<Head />
|
|
<Header />
|
|
<div className="authcontainer">
|
|
<Card>
|
|
<Space direction="vertical" size={8}>
|
|
<div>
|
|
<Typography.Title level={3}>Welcome</Typography.Title>
|
|
</div>
|
|
<Auth
|
|
supabaseClient={supabase}
|
|
providers={['google', 'github']}
|
|
view={'sign_in'}
|
|
socialLayout="horizontal"
|
|
socialButtonSize="xlarge"
|
|
/>
|
|
</Space>
|
|
</Card>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default AuthPage
|