Skip to content

Commit

Permalink
finish auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Oct 2, 2023
1 parent 6c32da8 commit 9d60edd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ export default function Login() {

const signInWithEmail = async () => {
const { data, error } = await supabase.auth.signInWithPassword({
email, password,
email,
password
})
}

/* get rid of signOut
const signOut = async () => {
const { error } = await supabase.auth.signOut()
}
}
<button type="button" onClick={signOut}>Sign out</button>
*/

return (
<>
Expand All @@ -35,7 +38,6 @@ export default function Login() {
/>
<button type="button" onClick={handleSignUp}>Sign up</button>
<button type="button" onClick={signInWithEmail}>Sign in</button>
<button type="button" onClick={signOut}>Sign out</button>
</>
)
}

0 comments on commit 9d60edd

Please sign in to comment.