WIP
fa513300
1 file(s) · +5 −1
| 2 | 2 | ||
| 3 | 3 | export function SignInButton() { |
|
| 4 | 4 | async function signInWithGithub() { |
|
| 5 | - | await supabase.auth.signInWithOAuth({ |
|
| 5 | + | const { data, error } = await supabase.auth.signInWithOAuth({ |
|
| 6 | 6 | provider: "github", |
|
| 7 | 7 | }); |
|
| 8 | + | if (error) { |
|
| 9 | + | console.log(error); |
|
| 10 | + | } |
|
| 11 | + | console.log(data); |
|
| 8 | 12 | } |
|
| 9 | 13 | ||
| 10 | 14 | return ( |