willm
03/24/2022, 4:06 PM.single()
for curl requests?daviscup
03/24/2022, 4:18 PMdrilkmops
03/24/2022, 8:39 PMunknown[]
coming back from the db? I'd rather have like string[]
or number[]
. Seems like the rest api url doesn't like those?
Getting them from here: https://myurl.supabase.co/rest/v1/?
VฮLO
03/24/2022, 11:06 PMAlan
03/25/2022, 12:08 AMNeedle
03/25/2022, 2:31 AM/title
command!
We have solved your problem?
Click the button below to archive it.Needle
03/25/2022, 12:20 PM/title
command!
We have solved your problem?
Click the button below to archive it.Pr.Kishan
03/25/2022, 12:21 PMelhe26
03/25/2022, 2:11 PM{"code":"42P01","hint":null,"details":null}
justcode123
03/25/2022, 2:37 PM4Lajf
03/25/2022, 3:19 PMconst { data, error } = await supabase.from('some_table').select('*');
but what after that?
Also can I run SQL commands with a SQL syntax from my application?fernandolguevara
03/25/2022, 7:47 PMsupabase start
but i got this error Error: Error starting database: ERROR: schema "graphql_public" does not exist
fmontanari
03/25/2022, 7:56 PM/user/profile
) and want to check if the current user is authenticated:
js
async function isAuthenticated() {
// User has session?
if(supabase.auth.session == null) {
// We don't, check if there's an old session in storage (local/session Storage)
const oldSession = getStorageSession();
// Has it expired yet?
if (oldSession.expiresAt >= Date.now()) {
loginWithRefreshToken();
return true;
}
else {
// setAuth with old session (does Supabase handle this automatically?)
await supabase.auth.setAuth(oldSession.access_token);
return true;
}
}
else {
// We have a session, is it expired though?
if(supabase.auth.session.expiresAt >= Date.now() {
loginWithRefreshToken();
return true;
}
}
// On error logging in with refresh token, returns false.
}
However, I receive "Invalid access token" after trying to login with the refresh token... Is there any step I'm missing, or is there any misunderstandings with how I should handle authentication with Supabase Auth?theuknowner
03/25/2022, 7:56 PMjustcode123
03/25/2022, 9:20 PMswiss
03/25/2022, 9:36 PMBryan K.
03/25/2022, 10:02 PMrockinbinbin
03/25/2022, 10:37 PMCREATE OR REPLACE FUNCTION public.test_fn(row_id bigint) RETURNS void AS $$
UPDATE restaurants SET name = 'test'
WHERE row_id = 36;
$$ language sql volatile;
Needle
03/26/2022, 4:46 AM/title
command!
We have solved your problem?
Click the button below to archive it.yaaang
03/26/2022, 5:22 AMsayantan.k
03/26/2022, 7:06 AMcreateClient
with my SUPABASE_KEY
and SUPABASE_URL
. So is connection pooling handled under the hood by Supabase? Or am I missing something?Avin
03/26/2022, 11:31 AMNeedle
03/26/2022, 11:39 AM/title
command!
We have solved your problem?
Click the button below to archive it.limzee
03/26/2022, 11:45 AMtheuknowner
03/26/2022, 1:28 PMBaoshan
03/26/2022, 2:26 PMpostgres
)? The CREATE DATABASE
command works. But the Table editor seems hard-coded to the default postgres
database. Extensions can not be enabled on the created database. Did I miss something?Milou
03/26/2022, 6:47 PMDanMossa
03/27/2022, 12:06 AMtandyman
03/27/2022, 1:47 AMAmusedGrape
03/27/2022, 1:53 AM