-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥾🍖 ↣ Removing extra stuff from auth in preperation of moving back to …
…React + supabase for [#13]
- Loading branch information
1 parent
83f14ba
commit bce607b
Showing
50 changed files
with
46 additions
and
26,955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { useState } from "react"; | ||
import { supabase } from "../lib/supabaseClient"; | ||
|
||
export default function SupabaseAuth() { | ||
const [email, setEmail] = useState(''); | ||
const [submitted, setSubmitted] = useState(false); | ||
|
||
async function signIn() { | ||
const { error, data } = await supabase.auth.signIn({ | ||
}); | ||
if (error) { | ||
console.log({ error }); | ||
} else { | ||
setSubmitted(true); | ||
} | ||
} | ||
if (submitted) { | ||
return ( | ||
<div> | ||
<h1>Please check your email to sign in</h1> | ||
</div> | ||
) | ||
}; | ||
|
||
return ( | ||
<div> | ||
<main> | ||
<h1> | ||
Sign in | ||
</h1> | ||
<input | ||
onChange={e => setEmail(e.target.value)} | ||
style={{ margin: 10 }} | ||
/> | ||
<button onClick={() => signIn()}>Sign In</button> | ||
</main> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.