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

    izacximenes

    01/14/2022, 12:35 AM
    Hi, i am tries check user is super_admin in policies using:
    Copy code
    (auth.uid() IN ( SELECT u.id
       FROM auth.users u
      WHERE u.is_super_admin))
    but i am getting this error:
    {"hint":null,"details":null,"code":"42501","message":"permission denied for table users"}
  • i

    izacximenes

    01/14/2022, 12:37 AM
    how i do check user is super_admin in policies?
  • g

    garyaustin

    01/14/2022, 12:43 AM
    General users will not have access to the auth schema. You could use a security definer function to do the select on auth.users. I can't comment on if that is_super_admin is meaningful as I've never seen it set in my hosted system.
  • f

    FreakDJ

    01/14/2022, 1:12 AM
    Hello 👋 ! I am messing around with testing functions, but am having trouble getting a response and I am unsure why.
    g
    • 2
    • 63
  • l

    larryM

    01/14/2022, 4:28 AM
    Hello! Im running into an issue when using Realtime Supabase. When I use a channel topic
    realtime:*
    Im able to get all live updates from my db but when i use
    realtime:public
    the listener closes and doesn't send any updates/inserts to the client. I looked at all of my tables in supbase and all of them have a
    public
    schema and have been replicated. Im not sure why the realtime sockets arent returning data. Has anyone faced this before? Thanks
  • u

    user

    01/14/2022, 5:14 AM
    Hello! 🖖 Is anyone else having all of their API requests time out? Nothing changed and we went from having hundreds of thousands of requests respond just fine today to nothing at all resolving. Using supabase-js if that helps.
  • h

    hero76

    01/14/2022, 7:32 AM
    Hello, could someone help me understand what is tenant ID in storage-api
  • d

    donjo9

    01/14/2022, 12:33 PM
    is it possible to create multiple projects in a local development environment ?
  • d

    donjo9

    01/14/2022, 12:47 PM
    never mind 😄
  • o

    Olyno

    01/14/2022, 5:01 PM
    > mattaye — Today at 4:51 PM > Hello again. My database is made up of a schema.sql that seems to have been imported magically when deploying to vercel using this starter project (https://github.com/vercel/nextjs-subscription-payments), and files i have created in the sql editor as i've played around with Supabase. I would like to wipe my db and start again, using a migration tool as it feels a bit of a mess and i want to verify that i can spin up a new db for production at a later date. > > What is the best way to reset to zero ready to run my newly organised migrations? Restarting the database keeps tables and data. Thanks Hi Mattaye Please use the right channel when asking, thanks you!
  • m

    mattaye

    01/14/2022, 5:38 PM
    Ah will do , thanks Olyno. Any thoughts on the above?
  • o

    Olyno

    01/14/2022, 5:40 PM
    If you're looking to make migrations, you should use psql, and connect to Supabase's postgres database, this is probably the best way
  • o

    Olyno

    01/14/2022, 5:41 PM
    I'm not sure if i got your question right, don't hesitate to tell me if i didn't 😅
  • m

    mattaye

    01/14/2022, 5:42 PM
    Thanks for your reply. So its a newbie question, but how do i wipe my supabase instance (remove all tables, procedures , data etc) and run the migrations again without deleting the project?
  • o

    Olyno

    01/14/2022, 5:53 PM
    I gues sthe best way to wipe your supabase instance is simply to remove the project directly, and recreate it. Or you could try with ``pg_dump``: https://stackoverflow.com/a/2089668/8845770
  • u

    user

    01/14/2022, 6:28 PM
    I going to try Supabase for authentication and database in a React budgeting app, suggest me some good resources to learn about it :-)
  • f

    Filippo

    01/14/2022, 6:41 PM
    Hi all. New to the channel, sorry if the question is dumb. Starting out with Supabase; I've looked into the docs but I can't find it anywhere: how can I edit the error message text that is displayed by default if the user, when signing up, enter a password that doesn't match the requirements (for example it's too short)? By default is in English, but I'd want it to be in Italian. Thank you very much for the help.
    c
    • 2
    • 5
  • c

    chipilov

    01/14/2022, 7:41 PM
    Translations in Supabase UI
  • p

    Peter Hase

    01/14/2022, 8:09 PM
    Hey hey people, I just tried out Supabase auth with the Discord provider and I noticed that the user meta data (username, image) isn't saved. Is there a way to access this data with triggers and save them in another table?
  • c

    cataxcab

    01/14/2022, 10:23 PM
    Unable to log into Supabase after verifying emails. I'm waiting it out now, but is this normal?
  • o

    Olyno

    01/14/2022, 11:20 PM
    Nope, try to clear your browser cache and try again
  • c

    cj

    01/15/2022, 1:15 AM
    Is it possible to export a projects structure?
  • m

    millu

    01/15/2022, 4:21 AM
    I have users from different location. Need to query based on users nearby. Any easy or recommended way to do it. Using nextjs
  • u

    user

    01/15/2022, 10:19 AM
    Hi all, i have an expo app paired with google signin on supabase, after a successfull supabase signin, onAuthStateChanged doesnot trigger in production . The redirect is working fine and onAuthStateChanged get fired on development mode. I'm fairly new to supabase, any help is much appreciated.
  • t

    the.watcher

    01/15/2022, 4:12 PM
    i got something similar today, is your problem fixed?
  • c

    cerwind

    01/16/2022, 12:20 AM
    Hi, for HTTP RESTful functions how are we to add custom headers to the request e.g.
    http_post
    doesn't seem to allow this?
  • g

    garyaustin

    01/16/2022, 12:57 AM
    If you mean this: https://supabase.com/docs/guides/database/extensions/http then you have to use http as the function and setup all the info including any headers you want. http_post is just a short cut for simple stuff. Here is the extension page https://github.com/pramsey/pgsql-http
  • c

    cataxcab

    01/16/2022, 5:51 AM
    Still hasn't been resolved after sending an email to support. Is there any chance I can escalate this in some other way? 😅
  • c

    cataxcab

    01/16/2022, 6:13 AM
    @User / @User / @User sorry to disturb you guys, but could you help? I don't mind waiting for my account access, but rn my app itself is down (it uses Supabase APIs to render the UI)
    j
    j
    • 3
    • 4
  • j

    J0

    01/16/2022, 6:18 AM
    Hey @User , Sorry to hear about the issues with login. I'm on it! Before we proceed could I trouble you to briefly describe what you've tried so far?
1...194195196...316Latest