ricky
04/07/2022, 11:03 PMgaryaustin
04/08/2022, 12:35 AMricky
04/08/2022, 12:36 AMgaryaustin
04/08/2022, 12:37 AMricky
04/08/2022, 12:39 AMjavascript
const signin = async () => {
const { user, session, error } = await supabase.auth.signIn({
provider: [
'discord',
'github'
]
})
}
garyaustin
04/08/2022, 12:41 AMricky
04/08/2022, 12:42 AMgaryaustin
04/08/2022, 12:47 AMricky
04/08/2022, 4:40 AMtime="2022-04-08T04:09:01Z" level=error msg="500: Database error saving new user" component=api error="failed to close prepared statement: ERROR: current transaction is aborted, commands ignored until end of transaction block (SQLSTATE 25P02): ERROR: duplicate key value violates unique constraint \"users_email_key\" (SQLSTATE 23505)" method=GET path=/callback referer= remote_addr="172.22.0.2:58988" request_id=88385e67-162d-40d7-b4f6-bd990da35a12
auth.users
table includes a email column that must be unique so it seems like when I try to login with my github account it tries to add my account but my discord account already exists in the table with the same emailgaryaustin
04/08/2022, 8:31 PM