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

    tandyman

    03/27/2022, 5:08 AM
    I've got another one....first...is it necessary to enable RLS if a table is a child to a parent which is RLS restricted properly? If that isn't good enough, and I have to also enable RLS for the child table as well, is there a rule where I can reference a column from that parent table...such as an id to compare against the uid? I'm trying to avoid littering potentially 20 tables, with the user id on every single row of every table...
    n
    a
    • 3
    • 17
  • h

    hotbelgo

    03/27/2022, 6:47 AM
    I need a hint on how to take some data like
    [{id:<known id>, field:<value>}]
    and put it into the database that has columns
    id, field, field1, field2
    . Doing it with
    update
    seems to require n commands, but with
    upsert
    I seem to need the full record rather than just the field that is changing
    n
    a
    t
    • 4
    • 27
  • u

    4Lajf

    03/27/2022, 8:13 AM
    Hi, it's me with another newbie question. How can i capture the URL adress when user clicks "forgot password" link? Because yeah, it redirects users to
    https://<id>.supabase.co/auth/v1/verify?token=<TOKEN>&type=recovery&redirect_to=http://localhost:3000/ForgotPassword/Reset
    which redirects them to
    http://localhost:3000/ForgotPassword/Reset#access_token=<ACCESS_TOKEN>&expires_in=3600&refresh_token=<REFRESH_TOKEN>&token_type=bearer&type=recovery
    but as soon as they're there the link becomes just
    http://localhost:3000/ForgotPassword/Reset#
    so my code only gets the
    ForgotPassword/Reset#
    and not the entire thing i have
    http://localhost:3000/ForgotPassword/Reset
    in my Additional Redirect URLs too
    n
    a
    • 3
    • 9
  • a

    Alan

    03/27/2022, 1:30 PM
    Apology if this question was already answered but I couldn't find it anywhere. I successfully let user signup. How can I log them in next time they come back without asking them to sign in again?
    n
    a
    y
    • 4
    • 6
  • f

    Foxmind1

    03/27/2022, 3:04 PM
    Hi guys, I want to search on multiple columns at the same time but I couldn't get it to work I tried
    .textSearch("'title' | 'content'", "word")
    .textSearch("'title' || 'content'", "word")
    both didn't work
    n
    g
    • 3
    • 5
  • g

    Garberchov

    03/27/2022, 3:34 PM
    Hey guys, I am using the python library and am getting the error
    TypeError: __init__() got an unexpected keyword argument 'headers'
    when I try and make the client.
    supabase = create_client(supabaseUrl, supabaseKey)
    If anybody knows why this is happening help would be awesome
    n
    • 2
    • 3
  • t

    tandyman

    03/27/2022, 5:54 PM
    What is the BEST practice, for having admin users of the software, that have the ability to bypass RLS and have full access to all data? It's a business requirement, and a must.
    n
    s
    g
    • 4
    • 58
  • t

    theuknowner

    03/27/2022, 6:20 PM
    Hello, I have a table with users and I want to store user's presence "online"-"offline". Is there any way to do this in Supabase? One way, would be to update user status to "online" when he logs in and set state to "offline" when disconnects from Supabase, but how can I listen for "disconnect" evnet?
    n
    • 2
    • 1
  • l

    limzee

    03/27/2022, 6:45 PM
    How do I select dates by month?
    n
    • 2
    • 3
  • j

    JR23

    03/27/2022, 7:25 PM
    Hello. I have one problem on update with svelte. When I update my "title" turns to ({"isTrusted":true}) (pic1) and the others columns don't update (pic2). My coce is (pic 3). I don't have any error on console. Any tips?
    n
    g
    • 3
    • 46
  • o

    Orestis7

    03/27/2022, 9:16 PM
    guys can someone help me understand how to connect a database to a wordpress install? thanks in advance
    n
    t
    • 3
    • 16
  • a

    Ape R Us

    03/27/2022, 11:02 PM
    hey guys, if in my current .svelte file i have
    Copy code
    let todos = [];
    
    onMount(async () => {
    let { data, error } = await supabase .from('todos') .select('*')
    todos = data;
    however i don't think that's pretty efficient, in my store.js file, should it be written as
    Copy code
    export const todos = writable([])
    
    export const loadTodos = async() => {
    let { data, error } = await supabase
    .from('todos')
    .select('*')
    
    todos = data;
    }
    Im not sure if that is even correct but, If so, how do i call it back into my .svelte file to load ?
    n
    o
    • 3
    • 5
  • j

    json

    03/27/2022, 11:52 PM
    I can't seem to get my local dev setup (just trying to copy the psql db to local docker). [Following this guide](https://supabase.com/docs/guides/local-development). The error message is: > Error: The remote database was applied with migration(s) that cannot be found locally. Try updating the project from version control. Otherwise: > 1. Delete rows from supabase_migrations.schema_migrations on the remote database so that it's in sync with the contents of supabase/migrations, etc. But I'd rather not delete my schema migrations from the DB. Why do I need to do this? I've never had a local db before. Would appreciate any advice!
    n
    • 2
    • 1
  • d

    denik1981

    03/28/2022, 1:53 AM
    Hey! How do you setup the studio dev server supa to work in localhost as a contributor? I ran
    docker-compose up
    for the entire services and then started the dev server in the studio folder. I also assured to copy the ANON and SERVICE_ROLE keys in both env files. How do you, contributors, set up your dev server and attach it to the other needed services for supabase?
    n
    j
    • 3
    • 4
  • g

    Gabii

    03/28/2022, 5:48 AM
    Hi! How do I delete, or unsync with github, or maybe change username and email of my supabase account? I no longer use the email that is vinculated and I am transgender, my username has my deadname :/
    n
    d
    • 3
    • 5
  • n

    nkeating

    03/28/2022, 9:12 AM
    What are the pro's and con's of using prisma + supabase?
    n
    o
    • 3
    • 6
  • u

    4Lajf

    03/28/2022, 10:34 AM
    Hi everyone, I'm struggling to compare user entered password to the one in database. I need that for an e-mail change request, the standard - you must enter your password to be able to change it
    n
    c
    g
    • 4
    • 13
  • x

    xavier

    03/28/2022, 2:28 PM
    Hey guys, is there a way to have the Current date as default value of a column in supabase?
    n
    g
    r
    • 4
    • 13
  • j

    junkfoodsanta

    03/28/2022, 5:05 PM
    Trying to self-host on raspberry pi. I’m told that the answer to my question on GitHub, is that I don’t have a db-connection. I don’t want to clutter git with any more questions because I’m still learning to code…what does this person from supabase mean by db-connection? I tried manually opening port 5432 for Postgres, thinking that was blocking the connection, but it does not help solve the problem. https://github.com/supabase/supabase/issues/2954#issuecomment-1076877339
    n
    • 2
    • 1
  • s

    Sobhan

    03/28/2022, 5:16 PM
    Hey! I'm trying to upload a video to a supabase bucket using the website UI. Currently, when I upload a video, I receive a popup that the video uploaded successfully, but the video then doesn't appear in the bucket file navigator. The video file size is under 50 mb, and I haven't yet defined any policies for the bucket. Does anyone know why the uploaded videos won't show? What should I do instead to successfully upload a video to Supabase?
    n
    g
    • 3
    • 10
  • t

    theuknowner

    03/28/2022, 5:31 PM
    What does this mean -> "Daily Disk IO Budget remaining" Is there daily limit on IO?
    n
    g
    • 3
    • 6
  • s

    stefan199

    03/28/2022, 5:52 PM
    Hello, I just started using supabase for authentication and noticed that it stores the jwt in localStorage. I tested firebase and it is also configured to store the jwt there if you follow the docs for Authentication State Persistence... However, I read that it would be more secure to store the jwt as a http-only cookie since localStorage is not supposed to be used for sensitive stuff (https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html#local-storage). Are there really security risks to the supabase/firebase approach?
    n
    g
    • 3
    • 4
  • s

    Sir 2BD

    03/28/2022, 6:50 PM
    Hey all! Has anyone gotten
    ERR_EMPTY_RESPONSE
    when trying to access Supabase Studio via Docker? It's been plaguing me all morning 🙃
    n
    • 2
    • 4
  • t

    theuknowner

    03/28/2022, 8:35 PM
    Is there any way to fetch the last eg.30 rows in descending order? I tried with ascending: false but the order is not correct. The last item of table is first on fetched array.
    n
    s
    +2
    • 5
    • 49
  • y

    yellowkettle

    03/28/2022, 8:43 PM
    Is there a simple boilerplate that does magic link auth with Supabase + nextjs in TypeScript?
    n
    g
    • 3
    • 3
  • m

    Masn

    03/28/2022, 9:47 PM
    Hello! New to supabase here. Is there an explanation somewhere on what the default schemas are for? I see there is public, which I assume is where my tables for things like users will go, but what are the other schemas for like auth, extensions, graphql_public, etc.
    n
    s
    • 3
    • 6
  • j

    julienreszka

    03/29/2022, 11:25 AM
    Hello Did you find an answer to your question ?
    n
    • 2
    • 1
  • b

    Brian Barrow

    03/29/2022, 12:31 PM
    @julienreszka no i never did. I'm assuming it isn't possible.
    n
    a
    j
    • 4
    • 4
  • j

    JR23

    03/29/2022, 3:58 PM
    Hello Everyone. Is there a way to limit varchar length in supabase? I want to limit server side.
    n
    g
    • 3
    • 10
  • e

    enti

    03/29/2022, 5:00 PM
    I'm kinda stuck writing such a policy :
    Copy code
    sql
    CREATE POLICY "policy_companies_country_view"
    ON companies_country_view
    FOR SELECT USING (
      // I want the id to be provided for SELECT to be allowed, i.e. 'WHERE id = xxx' required
      // I dont want to allow the entire table to be seen, but only to allow a single line operation
    );
    Any idea ?
    n
    a
    g
    • 4
    • 14
1...248249250...316Latest