https://supabase.com/ logo
Join Discord
Powered by
# help
  • m

    Mondocooler

    12/11/2021, 6:15 AM
    Turning RLS on the suscribed tabled gives me live update again.
  • m

    Mondocooler

    12/11/2021, 6:16 AM
    So why user_token is not passed to the payload ........
  • t

    thyme

    12/11/2021, 8:00 AM
    For the auth table. Is that stored in the pgsql? I'm not seeing a table for auth. We're trying to integrate supabase into an existing system for auth
  • s

    Scott P

    12/11/2021, 8:01 AM
    Auth isn't a table, it's a schema
  • t

    thyme

    12/11/2021, 8:02 AM
    Got it. Is there any way to do something similar to auth0 custom login /register logic where you can bring your own db and control how with works?
  • s

    shivam51

    12/11/2021, 10:17 AM
    Copy code
    js
          let { data: todo, error } = await supabase
            .from('todos')
            .insert({ task, user_id: user.id })
            .single()
    What is the use of single here?
  • a

    anothercoder

    12/11/2021, 11:58 AM
    Where is the source of this?
  • s

    shivam51

    12/11/2021, 12:25 PM
    https://github.com/supabase/supabase/blob/master/examples/nextjs-todo-list/components/TodoList.js#L21
  • a

    anothercoder

    12/11/2021, 12:45 PM
    I think if u leave it out, the returned data is an array with 1 object. If u use single(), the returned data is 1 object.
  • h

    Hhorn

    12/11/2021, 1:36 PM
    Hi, I've got a problem with realtime functionality. This command here works:
    Copy code
    .from('$tableName:id=eq.$currentId')
            .stream()
            .execute()
    But if i want to do more complex queries like Array Contains, I get the initial value but i don't receive any realtime updates. These command for example do not work:
    Copy code
    .from('$tableName:id=eq.$documentId')
            .stream()
            .execute()
    .from('$tableName?$arrayName=cs.{"$arrayValue"}')
            .stream()
            .execute()
    I would be very glad for any help, as I would like to use the realtime feature also with queries like these.
    g
    • 2
    • 4
  • c

    cookie mob

    12/11/2021, 2:10 PM
    I am uploading images to my supabase storage. I created bucket titled images and this is where my data gets stored. Now I want to access them with my app (react native). I'm trying to find url that leads to specific image, but I can't find it. Is it stored somewhere or are there any other methods to get images from storage?
  • c

    cookie mob

    12/11/2021, 2:24 PM
    I get bad request, saying jwt signature is missing
  • g

    garyaustin

    12/11/2021, 2:49 PM
    realtime complex queries
  • m

    M0nk3yBrainDead

    12/11/2021, 4:04 PM
    is a free account enough for a small blogpost website? smth like fb or twitter or smth
  • d

    dirkk0

    12/11/2021, 4:12 PM
    Hi! Supabase newb here. 🙂 I created a table from a CSV file which worked perfectly. Querying this table via JS or cURL doesn't work, meaning nothing gets returned. When I create a new test table manually and add a row, the query works. What am I missing?
    s
    • 2
    • 19
  • s

    silentworks

    12/11/2021, 4:32 PM
    Querying table not working
  • s

    SumitBando

    12/11/2021, 4:46 PM
    My initial impression trying Supabase in a Svelte client using supabse-js is less than ideal. Page render takes ~1S. According to Chrome, between Mumbai AWS & Kolkata browser, ~400ms for preflight and ~400ms for XHR to get trivial amount of data. Is this expected, or am I doing something wrong?
  • h

    hack1nt0sh

    12/11/2021, 5:00 PM
    How come i don't have the storage option on self-hosted supabase, i just did a fresh docker install and i don't seem to have that option enabled. Nothing on the docs about how to enable it
  • t

    thyme

    12/11/2021, 7:01 PM
    Is supabase auth soc and iso compliant?
  • t

    ThirdBase

    12/11/2021, 9:24 PM
    I'm running into an issue using the bucket from.update() command in my application. Would this be the right channel to ask or should I ask in the JS channel?
  • c

    cookie mob

    12/11/2021, 9:50 PM
    I have abit of a problem with fetching from database. I had a limit set to 20 entries, and it worked as it should while I had less than 21 entries in my database. As soon as I entered 21st entry, and the app refreshed, it still showed the first 20 entries... Then I increased limit to 30 and it worked great until again I reached 31st entry, then only the first 30 would be shown. I checked database and it showed 31st entry normally just like all the others
    s
    • 2
    • 3
  • s

    santiarr

    12/12/2021, 12:50 AM
    When trying to run
    Copy code
    supabase start
    I get
    Copy code
    GRANT
    Error: Error running SQL: ERROR:  type "userServers" does not exist
    ERROR:  current transaction is aborted, commands ignored until end of transaction block
    I've been following this guide : https://github.com/supabase/cli/blob/main/examples/tour/README.md
  • k

    kroket

    12/12/2021, 12:49 PM
    Hey guys, i've just started using this supabase with nextjs implementing auth. i'm just wondering, when you are trying to signout or update, it doesn't send any event regarding such action i'm using this code
    Copy code
    const { data: authListener } = supabase().auth.onAuthStateChange(
          async (event, session) => {
            setSession(session);
            setUser(session?.user ?? null);
    
            await axios.post("/api/auth", { event, session });
          }
        );
    the only event that being send is
    SIGNED_IN
    , anyone ever experience this ?
  • b

    Barba

    12/12/2021, 1:01 PM
    Quick one, is any way to have a auth redirection for development??
  • b

    Barba

    12/12/2021, 1:03 PM
    I guess the right way is create a db on supabase for dev
  • s

    shivam51

    12/12/2021, 3:06 PM
    Hi, can anyone share a good and feature rich github repo using supabase?
  • s

    shivam51

    12/12/2021, 3:06 PM
    I am trying to look for code examples.
  • i

    imtiaz

    12/12/2021, 4:14 PM
    is anyone else having issues with setting up realtime? i dont have any rls for the tables and realtime is enabled on the table. i followed the documentation as well but the callback function is not getting called during inserts on the database
  • c

    codesalim

    12/12/2021, 6:23 PM
    hello everyone, i want implement follow and following. How do i go about implementing it?
  • g

    garyaustin

    12/12/2021, 7:45 PM
    Doing a search in the upper right for follow and following would have revealed: https://discord.com/channels/839993398554656828/843999948717555735/892021329002385418
1...157158159...316Latest