Scott Prins
01/18/2022, 6:56 PMkresimirgalic
01/18/2022, 6:57 PMkresimirgalic
01/18/2022, 6:57 PMScott Prins
01/18/2022, 6:57 PMMubo
01/18/2022, 8:13 PMktosiek
01/18/2022, 9:44 PMwiesson
01/18/2022, 10:13 PMwillm
01/19/2022, 5:11 AMScott P
01/19/2022, 5:40 AMMarc
01/19/2022, 6:12 AMawait supabase.from("*").delete();
is this possible to reset the DB without dropping tables?lorencerri
01/19/2022, 6:43 AMktosiek
01/19/2022, 7:14 AMsupabase db remote set URL
? An URL that works with psql causes an error with supabase:
Error: Error parsing connection string: Make sure the URL is percent-encoded.xa
01/19/2022, 8:30 AMrahuldubey
01/19/2022, 8:49 AMdonjo9
01/19/2022, 8:54 AMdonjo9
01/19/2022, 8:55 AMrtzon
01/19/2022, 9:04 AMSELECT group_id from group_memberships WHERE user_id = auth.uid()
Denzo
01/19/2022, 4:32 PM.signIn()
method? I know it's possible to set metadata with the .signUp()
call, but since we are mostly using OAuth providers and magic email links we are using signIn()
everywhereidkidm
01/19/2022, 5:08 PMLeoSonnekus
01/20/2022, 1:32 AMVexmachina
01/20/2022, 1:54 AMVexmachina
01/20/2022, 1:55 AMVexmachina
01/20/2022, 1:56 AMjavascript
Account.js
import { useState, useEffect } from "react";
import { supabase } from "../utils/supabaseClient";
import Avatar from "./Avatar";
export default function Account({ session }) {
const [loading, setLoading] = useState(true);
const [username, setUsername] = useState(null);
const [website, setWebsite] = useState(null);
const [avatar_url, setAvatarUrl] = useState(null);
useEffect(() => {
getProfile();
}, [session]);
async function getProfile() {
try {
setLoading(true);
const user = supabase.auth.user();
console.log(user);
let { data, error, status } = await supabase
.from("profiles")
.select(`username, website, avatar_url`)
.eq("id", user.id)
.single();
console.log(status);
if (error && status !== 406) {
throw error;
}
if (data) {
setUsername(data.username);
setWebsite(data.website);
setAvatarUrl(data.avatar_url);
}
} catch (error) {
alert(error.message);
} finally {
setLoading(false);
}
}
Vexmachina
01/20/2022, 2:01 AMnkeating
01/20/2022, 3:36 AMsilentworks
01/20/2022, 6:24 AMjbergius
01/20/2022, 7:41 AMhttps://app.supabase.io/?error=server_error&error_description=Error+getting+user+email+from+external+provider
chipilov
01/20/2022, 8:17 AMmellson
01/20/2022, 1:12 PMnxx
01/20/2022, 1:46 PM