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

    reco

    07/13/2022, 12:50 PM
    anybody using
    ltree
    with supabase? Cannot get path queries to work in supabase...
    n
    s
    • 3
    • 2
  • m

    martypdx

    07/13/2022, 1:20 PM
    What's is the
    instance_id
    in the
    users
    table and how is it same/different than the
    id
    ?
    n
    g
    • 3
    • 2
  • l

    lavenderlav

    07/13/2022, 1:25 PM
    My project isnt showing up in the supabase dashboard
    n
    o
    • 3
    • 10
  • d

    Dmitriy2501

    07/13/2022, 2:03 PM
    Hi everyone, I want to create a Get request in SQL editor. Why am I getting a POST request?
    Copy code
    create or replace function get_device_info(id uuid)
    returns setof devices as $$ 
      select devices
      from devices
      where devices.id = $1;
    $$ language sql immutable;
    n
    s
    s
    • 4
    • 24
  • l

    LinkPlay

    07/13/2022, 2:05 PM
    Im using Realtime Subscriptions at Row Level like this:
    .from('countries:id=eq.200')
    . Now im want to listen to when id is changing to something else like
    201
    , but was
    200
    before (i.e.
    payload.old.id === 200
    but
    payload.new.id === 201
    ). It seems that my row level subscription with
    eq.200
    isn't catching this change, since the id gets changed to
    201
    . Is there any way to listen to "old" values?
    n
    • 2
    • 1
  • m

    Martin Piliar

    07/13/2022, 2:55 PM
    Hey guys, I have one question about using supabase (or technically any other BaaS) with the ionic framework (angular). How do you handle some verifications like if the user has paid for a premium account (let's say via stripe)? Are you combining supabase with a backend server or do you just handle everything in the application? (Which, as am I aware is a security risk since it's a public facing code and not a server one). Hopefully this is the right channel for this, since technically it applies even to other front-end frameworks. Thank you!
    n
    • 2
    • 1
  • j

    Jordan C

    07/13/2022, 3:09 PM
    Not sure if this is asked before, but I was just wondering if there had been any updates on the proposed MFA release in recent months?
    n
    • 2
    • 1
  • e

    elJEMPlay

    07/13/2022, 4:14 PM
    how can i get the url of an image if the bucket is private? in the documentation i have only seen for a public bucket
    n
    g
    • 3
    • 4
  • n

    n10000k

    07/13/2022, 4:20 PM
    let's say i build a realtime game, do we know what the max amount of connections we can support over w/sockets?
    n
    g
    • 3
    • 5
  • c

    Chiqui

    07/13/2022, 4:40 PM
    I'm currently getting the following error while using custom DB
    n
    • 2
    • 3
  • b

    Bicijay

    07/13/2022, 4:45 PM
    Hey everyone, do you have a ballpark estimate for when the thumbnail feature will be implemented? I know devs talked about launching it around this month but i dont know where can i get some updates
    n
    g
    • 3
    • 3
  • m

    martypdx

    07/13/2022, 4:49 PM
    For realtime notifications on INSERT, what RLS is required? I have insert policy that limits
    uid() = user_id
    and a select policy that requires
    authenticated
    role, but do not receive notifications. (confirmed that if I turn off RLS notifications occur)
    n
    g
    • 3
    • 5
  • s

    snoodleking

    07/13/2022, 5:52 PM
    can anyone point me to where we can access a database backup? we're paying for the pro tier but I can't seem to find this feature
    n
    • 2
    • 4
  • s

    stevekrouse

    07/13/2022, 6:13 PM
    How can I authorize a user on my API server? It'd be nice if I could send their JWT to the API server but I assume that client code doesn't have access to JWTs because they're stored in headers / cookies
    n
    v
    n
    • 4
    • 6
  • d

    drewbie

    07/13/2022, 6:14 PM
    I am having troubles triggering an edge function after an update/create of a certain table (via a Function Hook). The logs for the this function never show it being invoked. Am I missing something?
    n
    • 2
    • 1
  • a

    Ape R Us

    07/13/2022, 6:57 PM
    has anyone been able to properly implement the supabase and sveltekit auth?
    n
    o
    s
    • 4
    • 3
  • g

    Guy Butts (datalytyks)

    07/13/2022, 9:15 PM
    Hey everyone, sorry for the repeat question, but does Supabase have a referral program? Thanks!
    n
    m
    • 3
    • 5
  • d

    Derek

    07/13/2022, 9:26 PM
    Has anyone had success querying a many-to-one relationship with postgrest? I've a table with music artists, and another table of albums which has a foreign key back to the corresponding artist id. Can I query an artist and get all of their albums in a nested response? A 'reverse' foreign key lookup is what I'm after essentially. For example:
    supabase.from('artist').select('*, album(*)').eq('id', 5).limit(1).single()
    n
    s
    m
    • 4
    • 7
  • i

    InASunshineState

    07/13/2022, 11:21 PM
    I was selecting rows for my logged-in Next.js page with an RLS policy in place to just grab my current user's rows on that table... and if I refreshed, they were coming up empty in the console, but if I left to another page and came back they were in fine. What would a hard refresh be doing to scrub that, and how can I reinforce it so the select will always know what's going on?
    n
    s
    • 3
    • 7
  • m

    MementoMori

    07/14/2022, 2:32 AM
    Actually the JWT is stored in localStorage, which is what I came here to ask about. Is it really secure for Supabase to be storing the JWT there? I just tried copy pasting the key and token into another browser's localStorage without signing in, upon refresh I got signed in without typing anything. I'm assuming it's because Supabase just checks localStorage for the token key and if there's something there sends it to the server, so this is intended behaviour. The thing is it's not that hard to access localStorage from a random chrome extension for example? So what's stopping someone from getting the jwt upon sign in, sending it to themselves and impersonating the user? I apologise if this is perhaps an industry standard that is followed for authentication and there's something I'm missing. I'm simply trying to learn as well. Thanks.
    n
    s
    +3
    • 6
    • 5
  • a

    AmusedGrape

    07/14/2022, 2:33 AM
    i'm having a really weird issue here; JSON objects that are returned by supabase are being put in alphabetical order, when i need it not to. i inputted the json right into the database so it cant be anything with stringifying on the client, so what do i do? thanks!
    n
    s
    • 3
    • 5
  • v

    vishwasnavadak

    07/14/2022, 5:11 AM
    I have been using supabase client (js) initialized with anon key & google auth in place, to fetch the data from the table. I have enabled RLS on one of the table (rule is to allow only authenticated users), it only returns empty even after logging in and supabaseClient.auth.session() is still shows a valid JWT
    n
    s
    • 3
    • 6
  • b

    benten

    07/14/2022, 5:31 AM
    is
    supabase.auth.api.getUserByCookie
    making a fetch request to the server? Is is possible to determine the user ID and legitimacy of the JWT synchronously ?
    n
    • 2
    • 1
  • p

    PerQuiS

    07/14/2022, 8:07 AM
    I was wondering if it's possible to log out user on the server-side in next.js? I tried this, but it does not do anything```export const getServerSideProps: GetServerSideProps = withPageAuth({ redirectTo: '/auth/sign-in', authRequired: true, async getServerSideProps(ctx) { const session = await supabaseServerClient(ctx).auth.session(); await supabaseServerClient(ctx).auth.api.signOut(session!.access_token); return { redirect: { permanent: false, destination: '/auth/sign-in', } } } });```
    n
    s
    • 3
    • 11
  • f

    Fehmi

    07/14/2022, 8:50 AM
    Hi, I am trying to connect my supabase DB by using
    psql
    command but keep getting the error below
    Copy code
    % psql -h db.XXXXXXXXXX.supabase.co -U postgres -d postgres
    psql: error: connection to server at "db.XXXXXXXXXX.supabase.co" (XXXXXXXXXX), port 5432 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
    I have tried restarting the server from the web UI, but still cannot connect from my machine.
    n
    s
    • 3
    • 4
  • o

    OLZHAS

    07/14/2022, 10:18 AM
    Has anyone had problems with Realtime subscriptions recently? Mine simply don't activate and logs never see them (replication turned on, RLS disabled, socket connects with 101 status code)
    n
    g
    • 3
    • 6
  • v

    virtualdominic

    07/14/2022, 10:27 AM
    Is 📷 Instagram auth 🔒 technically part of "Login with Facebook" or just not supported yet? Searching the discord for "instagram" reveals a couple of people asking about it but no replies as of yet
    n
    o
    • 3
    • 3
  • m

    mohnish

    07/14/2022, 10:39 AM
    Hello, for some reason this morning my project is taking forever to connect despite there being ample memory/CPU IO budget remaining. It is hurting mission critical tasks for my customers. The support form is not submitting (and not giving me a reason for why it's not submitting) so thought I'd post this message here. Can someone help me fix this asap please?
    n
    s
    • 3
    • 8
  • p

    poutingemoji

    07/14/2022, 11:13 AM
    I'm currently in the process of migrating from supabase to PlanetScale right now. What would be the best way to do this? I have a prisma layer on top of my PlanetScale db. Here are the ways I've thought of: 1. Use the supabase js client and prisma in the same project to transfer all the data over through queries. 2. Somehow export the table data as json and then import it that way? I'm probably gonna go with the first method but I wanted to ask in here just in case there was some better way cause the way I'm proposing feels kinda hacky
    n
    s
    • 3
    • 5
  • j

    jaitaiwan

    07/14/2022, 1:49 PM
    @User I know I should avoid pinging y'all but congrats on the interface update. Looks SNAZZY
    n
    s
    m
    • 4
    • 3
1...300301302...316Latest