https://supabase.com/ logo
Join Discord
Powered by
# javascript
  • p

    Phenomen

    08/01/2022, 3:26 PM
    I was thinking maybe it's possible to save the form as a JSON object in a single Supabase row. But I'm not sure how to load it back 🤔
    g
    • 2
    • 1
  • g

    garyaustin

    08/01/2022, 3:55 PM
    I was thinking maybe it s possible to
  • a

    anderjaska

    08/01/2022, 4:26 PM
    hey, does the supabase api have a limit on storage uploads?
  • a

    anderjaska

    08/01/2022, 4:26 PM
    Like, could I upload a 1gb file at one time?
  • a

    anderjaska

    08/01/2022, 4:29 PM
    thanks gary!
  • d

    dayvista

    08/02/2022, 12:07 AM
    How can I add metadata to the user object when signing up using a 3rd party provider like Google, Apple, etc?
    signIn
    doesn't provide a
    data
    option.
    g
    • 2
    • 1
  • j

    joshcowan25

    08/02/2022, 11:53 AM
    I use a custom CMS to modifiy content on Supabase. I didn't change a thing in the code, but I created a new website, duplicated the CMS and then change the env vars. It's suppose to work. But when I try to connect to my user account, token?grant_type=password preflight send 200, but the fetch state remains at 'waiting'... The payload is correct, the API key is there, the email and password are there, but it remains at 'waiting'.... Any clue?
  • g

    garyaustin

    08/02/2022, 1:45 PM
    How can I add metadata to the user
  • a

    anderjaska

    08/02/2022, 2:23 PM
    Hey all, what's the easiest way to add a new database user? This would be to support a zapier integration.
  • a

    anderjaska

    08/02/2022, 2:23 PM
    I just want this user to have access to one table
  • u

    user

    08/02/2022, 4:00 PM
    Hello everyone, this is my first time using supabase and I am having issues updating a row from my table with javascript.
  • u

    user

    08/02/2022, 4:01 PM
    this is what I have:
    Copy code
    ts
    const { data: d, error: r } = await supabase
    .from('links')
    .update({ 'visits': visits })
    .match({ 'slug': slug })
    s
    • 1
    • 13
  • k

    kasvith

    08/02/2022, 8:31 PM
    does supabase client automatically handles refreshtokens and access tokens? or do we have to create a mechanism to exchange refresh tokens with access tokens manually?
  • g

    garyaustin

    08/02/2022, 8:44 PM
    Supabase-js handles refreshing, etc. when used in a browser.
  • k

    kasvith

    08/02/2022, 8:47 PM
    dope 🙂
  • j

    joshcowan25

    08/02/2022, 10:12 PM
    Supabase auth helpers problem with Sveltekit?
    s
    • 2
    • 4
  • i

    ideasx

    08/03/2022, 2:02 AM
    Hello, I am porting a project from react to fresh and Deno. When I use create client I get the following error:
    Copy code
    error: TypeError: Cannot read properties of undefined (reading 'href')
        at getParameterByName (https://deno.land/x/gotrue@3.0.0/src/lib/helpers.ts:17:35)
        at new GoTrueClient (https://deno.land/x/gotrue@3.0.0/src/GoTrueClient.ts:94:57)
        at new SupabaseAuthClient (https://deno.land/x/supabase@1.3.1/src/lib/SupabaseAuthClient.ts:6:5)
        at SupabaseClient._initSupabaseAuthClient (https://deno.land/x/supabase@1.3.1/src/SupabaseClient.ts:166:12)
        at new SupabaseClient (https://deno.land/x/supabase@1.3.1/src/SupabaseClient.ts:69:22)
        at createClient (https://deno.land/x/supabase@1.3.1/src/index.ts:11:10)
        at file:///disk1/Development/peoplzweb/utils/supabase.ts:10:25
  • i

    ideasx

    08/03/2022, 2:03 AM
    Copy code
    import { createClient } from "https://deno.land/x/supabase@1.3.1/mod.ts";
    import { dotEnvConfig } from "./deps.ts";
        
    dotEnvConfig({ export: true });
    
    const supabase_key = (Deno.env.get("SUPABASE_PUBLIC_KEY")) as string;
    const supabase_url = (Deno.env.get("SUPABASE_URL")) as string;
    
    // Create a single supabase client for interacting with your database
    export const supabase = createClient(supabase_url, supabase_key)
  • i

    ideasx

    08/03/2022, 2:04 AM
    Seems like something in the library, but I am new to Deno so maybe it is me.
  • g

    garyaustin

    08/03/2022, 2:08 AM
    I've not tried Edge functions calling SB. But SB's example shows this way to use the client: https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts
  • i

    ideasx

    08/03/2022, 2:18 AM
    Thank you, so much. I had a look at the reference example and it seems that we are doing the same thing: https://github.com/supabase/supabase/blob/master/examples/edge-functions/app/src/utils/supabaseClient.js
    g
    s
    • 3
    • 2
  • g

    garyaustin

    08/03/2022, 2:51 AM
    Thank you so much I had a look at the
  • d

    daksh

    08/03/2022, 6:43 AM
    I'm getting this cors error on prod, it's working fine on localhost. I'm using NextJS in the browser
    p
    • 2
    • 2
  • p

    pixtron

    08/03/2022, 11:11 AM
    I m getting this cors error on prod it s
  • s

    Sourabh

    08/03/2022, 11:17 AM
    I'm getting a bad request error, when using upsert. The description is message":"All object keys must match" I am not passing created_at and updated_at. Is there a workaround?
    g
    • 2
    • 1
  • s

    Seye

    08/03/2022, 1:41 PM
    Is Edge Function still experimental? Can we use it in production? The notification is still in the docs
  • a

    Albert [tox/cis]

    08/03/2022, 2:11 PM
    That is a good question. As of August 1st, it's supposed to be experimental but the E-mail from yesterday didn't mention any changes for Edge Functions
  • t

    thor

    08/03/2022, 2:39 PM
    hey guys. I'm using supabase since yesterday. And Im facing the following problem in Vue. supabase.auth.onAuthStateChange((event, session) => { if (event == 'SIGNED_IN') { this.$router.push({ path: 'welcome' }) } } is working fine BUT it always sends me back to /welcome when leaving and reentering the browsertab. is this the behavior i should expect?
  • g

    garyaustin

    08/03/2022, 2:52 PM
    This was a recent change discussed here. https://github.com/supabase/gotrue-js/issues/284
  • t

    thor

    08/03/2022, 2:55 PM
    @garyaustin ive removed it from app.vue and just watch on login.vue for the SIGNED_IN event to redirect after login. thank you
1...7778798081Latest