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

    arnu515

    08/17/2021, 2:16 PM
    Hi, I have an RLS policy set, and I want to use the JS client to query data from the table. I have my service role key. Where exactly do I pass it so that it can bypass the RLS? Here's my JS code:
    Copy code
    js
    await supabase.from("integrations").select();
    And here's the policy:
    Copy code
    sql
    CREATE POLICY "Don't allow anyone to read" ON public.integrations USING (false);
    Thanks for your time, and please ping me 🙂
    s
    • 2
    • 4
  • s

    silentworks

    08/17/2021, 2:47 PM
    Using service role key to bypass RLS policies
  • f

    florian-lefebvre

    08/17/2021, 3:45 PM
    I'm inviting users manually from the dashboard. How can I allow them to sign in with a magic link only the first time? (because I force them to add a password after the first time)
  • j

    jon.m

    08/17/2021, 4:32 PM
    @User you're inviting them from the dashboard via an email link?
  • f

    florian-lefebvre

    08/17/2021, 4:32 PM
    yes
  • j

    jon.m

    08/17/2021, 4:33 PM
    Can you have the magic link redirect them to a password form?
  • j

    jon.m

    08/17/2021, 4:33 PM
    and then have a normal email password login form that they can use thereafter
  • f

    florian-lefebvre

    08/17/2021, 4:35 PM
    sounds great thx!
  • l

    laznic

    08/17/2021, 4:37 PM
    Anyone else having problems with
    pg_net
    not firing requests?
    m
    • 2
    • 12
  • u

    user

    08/17/2021, 5:28 PM
    I wanted to thank everyone who helped me out yesterday. I was having so many problem, but because of this group's help, I finally learned how to properly read the docs and understand how to get started.
  • l

    laznic

    08/17/2021, 7:02 PM
    pg_net not sending requests
  • j

    juanzen

    08/17/2021, 11:35 PM
    Hey Supabase community, I'm here again for asking a question related to Storage I'm uploading a file as per the documentation, the
    .upload('filename.png', File)
    and everything. But, I get a 400 error. Any ideas?
  • j

    juanzen

    08/17/2021, 11:35 PM
    The bucket is set to public, too
  • j

    juanzen

    08/17/2021, 11:36 PM
    I'm also getting a "new row violates row-level security policy for table \"objects\""
  • j

    juanzen

    08/17/2021, 11:56 PM
    I'm also getting this error
    Copy code
    js
    error: ""
    message: "new row violates row-level security policy for table \"objects\""
    statusCode: "42501"
  • j

    juanzen

    08/18/2021, 12:20 AM
    Found the problem. It was a policy one, as the error suggested
  • m

    mtwichel

    08/18/2021, 1:10 AM
    Hey everyone 👋 we have an app with few thousand users and use Firebase currently. We’re very interested in Supabase as an alternative (mainly for a sql database instead of Firestore, which we’ve had issues scaling with), but we need a way to import our users from Firebase Auth. We use phone auth, Google, and Apple currently. Is it possible to import those users into Supabase?
    b
    • 2
    • 15
  • b

    burggraf

    08/18/2021, 3:50 AM
    Import Auth from Firebase
  • u

    user

    08/18/2021, 5:13 AM
    Hi everyone! I accidentally deleted the
    auth.users
    table in my testing environment 🥲 It's a silly mistake, and I was wondering if there's a command I can run to place it back? I tried searching for it in the discussions but to no avail. Thank you for your help in advance! 🙂
  • s

    silentworks

    08/18/2021, 5:20 AM
    It’s probably best to just delete that project and start a new one.
  • u

    user

    08/18/2021, 5:21 AM
    Oh okay! Would you know if there's a quick way to export the sql file for the other tables?
  • s

    silentworks

    08/18/2021, 5:22 AM
    Use a standalone sql app like TablePlus to do that
  • u

    user

    08/18/2021, 5:23 AM
    Got it, thanks for the help!
  • s

    silas

    08/18/2021, 6:22 AM
    BUG Session and user return null even when the user is logged in
  • s

    silas

    08/18/2021, 6:23 AM
    ^ this issue has been driving me ABSOLUTELY INSANE lol
  • s

    silas

    08/18/2021, 6:25 AM
    Does anyone have any ideas why
    supabase.auth.session()
    and
    .user()
    both return null even when the user is logged in?
  • s

    silas

    08/18/2021, 6:26 AM
    There’s no way to wait for the value to be retrieved and then continue with a function to redirect the page accordingly (or whatever else)
    f
    k
    • 3
    • 4
  • f

    florian-lefebvre

    08/18/2021, 6:54 AM
    SSR Auth
  • k

    KrisCoulson

    08/18/2021, 7:01 AM
    This issue just started happening running supabase locally. I tried to reset my local database. When using
    supabase.auth.signUp()
    the user no longer gets created in the auth table. The emails still gets sent out. to localhost:9000. Currently supabase version 0.5.0
  • k

    KrisCoulson

    08/18/2021, 7:24 AM
    figured it out. it was a local version of postgres that was hijacking the connection to the docker container
1...545556...316Latest