https://supabase.com/ logo
Join DiscordCommunities
Powered by
# javascript
  • b

    BallisticSwami

    03/15/2022, 10:56 AM
    Also when I try to download anything a Blob of size 0 is returned
  • d

    DanMossa

    03/15/2022, 2:02 PM
    Upload
  • e

    elliott

    03/16/2022, 12:06 AM
    Supabase auth examples on github includes two very different methods: https://github.com/supabase/supabase/blob/master/examples/nextjs-auth/pages/profile.js vs https://github.com/supabase/supabase/blob/master/examples/nextjs-auth-tailwind/pages/profile.js Does anyone know which of these approaches, both apparently endorsed by supabase, is preferred?
    s
    • 2
    • 3
  • s

    silentworks

    03/16/2022, 10:09 AM
    Supabase Auth
  • z

    Zenon

    03/19/2022, 9:33 AM
    Hey guys Is there a way we can now login with magic Link and metadata?
  • g

    garyaustin

    03/19/2022, 1:42 PM
    If you are asking if you can send a user data object in signIn like you can in signUp…no.
  • j

    Jono

    03/19/2022, 5:16 PM
    Hi there! I'm having trouble with scopes while using slack as an auth provider
    Copy code
    const { user, session, error } = await supabase.auth.signIn({
            provider: 'slack',
          }, {
            scopes: 'team:read'
          })
    the url has a query param that looks like
    scope=profile+email+openid+team%3Aread&user_scope=
    where as the slack app dashboard provides one that looks like
    scope=chat%3Awrite%2Cusers%3Aread%2Cteam%3Aread
    when I delete
    profile+email+openid+
    from the url slack auth works. Is there someway I can modify the url generated before opening the new oauth browser window, or where does this code live, maybe there is a param I can add/modify? ** but when I remove those then the actual signup doesn't work because the request doesn't include access to email
    s
    l
    • 3
    • 6
  • z

    Zenon

    03/20/2022, 9:47 AM
    Hey everyone How can I change the display name in Google Sign In Page when I'm using the Google Auth provider with Supabase?
  • m

    Manuel Coffin

    03/20/2022, 9:57 AM
    Hi guys! Does anyone uses Supabase on a BlitzJs project? I'm not sure it's related to blitz, but when my app recompiles, the
    supabase.auth.session()
    returns null 🤷‍♂️ Anyone experienced this?
  • j

    Jack?

    03/21/2022, 2:08 AM
    Hello! Im having issues where my user_id doesn't change when using Promise.allSettled, is there anything i can look into to fix this? Thank you in advance!
  • g

    garyaustin

    03/21/2022, 2:15 AM
    You are going to need to provide more info for anyone to help you. Please start a thread with more details on your call/calls. Unless I'm missing something "user_id" is your own variable name or from sample code you are working with.
  • z

    Zenon

    03/21/2022, 4:03 AM
    @User help please 😓
  • g

    garyaustin

    03/21/2022, 4:15 AM
    Is this what you are referring to by "display name"? https://github.com/supabase/supabase/discussions/2925
  • z

    Zenon

    03/21/2022, 4:20 AM
    Yes! Thank you
  • o

    Olyno

    03/21/2022, 8:58 AM
    Hi Please use the ``@Support`` mention instead the mod's one to get help, it's more appropriate
  • d

    drilkmops

    03/21/2022, 9:27 PM
    hey all, im using that script to get all the types from my db. In my db i set it as a type of numeric defined as an array, but when i run the script its returning as an
    unknown[]
  • d

    drilkmops

    03/21/2022, 9:28 PM
    any idea how to get it to actually come back as
    number[]
    for ts support?
  • g

    gomflo

    03/22/2022, 3:05 PM
    Hi, It is possible to do this query with supabase-js?
  • g

    gomflo

    03/22/2022, 3:05 PM
    Copy code
    sql
    SELECT * FROM products WHERE updated_at current_price < previous_price;
    g
    • 2
    • 2
  • g

    gomflo

    03/22/2022, 3:05 PM
    Already try this but did not work:
  • g

    gomflo

    03/22/2022, 3:06 PM
    Copy code
    javascript
     let { data: } = await supabase
        .from("products")
        .select("*")
        .lt("current_price", "previous_price")
  • m

    mikelyndon

    03/22/2022, 3:40 PM
    Hey folks. I'm attempting to update an object in storage. The storage service is running through a local docker container.
    Copy code
    javascript
    let { error: uploadUpdateError } = await supabaseClient.storage
            .from("assets")
            .update(filePath, uploadImg, { upsert: true });
    But I'm getting this error
    Copy code
    json
    {"level":50,"time":1647962861081,"pid":22,"hostname":"b3718797a4f3","reqId":"req-11","tenantId":"adt","error":{"message":"JSON object requested, multiple (or no) rows returned","details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row"},"msg":"error object"}
    which I can only find a reference for when using
    single()
    instead of
    .limit(1)
    as part of a
    .select()
    I know the filePath is correct. Any thoughts on what could be causing this or how to resolve it?
    • 1
    • 1
  • g

    garyaustin

    03/22/2022, 3:59 PM
    compare two columns filter
  • m

    mikelyndon

    03/23/2022, 1:25 PM
    Setting RLS for storage on self-hosted containers
  • g

    garyaustin

    03/24/2022, 2:03 PM
    https://supabase.com/docs/guides/storage
  • z

    zeem

    03/24/2022, 2:07 PM
    hey so the docs are a bit unclear is there any guide on how to manage sessions using supabase auth? for example the life span of the session
  • k

    kennethcassel

    03/24/2022, 4:14 PM
    how would you use the supabase js sdk to query for a timestamp before a certain date?
    s
    g
    • 3
    • 3
  • s

    silentworks

    03/24/2022, 5:44 PM
    How to query for timestamp before a certain date?
  • m

    mikelyndon

    03/25/2022, 6:28 AM
    Have you gone through the docs on JWTs? https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts
  • r

    Rob

    03/25/2022, 2:57 PM
    Hi all, new here, using Supabase with SvelteKit, did a simple Todo with client side auth. https://github.com/robots4life/val https://val-todo.vercel.app/ Now kind of like to tackle Supabase with SvelteKit SSR auth and that proves a lot harder or at least there are lot more parts to it. Found this discussion last night https://github.com/supabase/supabase/discussions/5218 and happy to see all the content there. Is there more I need to know, could the answer in that discussion be used as a starting point for a tutorial or an example repo? @User if you are going to write a tutorial on SvelteKit SSR auth with Supabase I am very happy to assist you, trying to learn this, thank you. edit: I also found this https://github.com/supabase-community/svelte-supabase/pull/13 if someone is interested.
    b
    s
    • 3
    • 17
1...525354...81Latest