https://supabase.com/ logo
Join Discord
Powered by
# javascript
  • h

    HorseShoe

    07/29/2022, 3:02 PM
    I think it works now
  • h

    HorseShoe

    07/29/2022, 3:03 PM
    I think there was a clash between me using 127.0.0.1 and localhost in the authorized uris
  • h

    HorseShoe

    07/29/2022, 3:03 PM
    I can't seem to get any events in realtime
  • h

    HorseShoe

    07/29/2022, 3:03 PM
    I have enabled replication, enabled all the events for the table
  • h

    HorseShoe

    07/29/2022, 3:04 PM
    and the RLS for that table is temporarily set to just return true for all operations
  • g

    garyaustin

    07/29/2022, 3:04 PM
    Start an issue in general if you have realtime issues.
  • h

    HorseShoe

    07/29/2022, 3:04 PM
    I am able to select from the table
  • h

    HorseShoe

    07/29/2022, 3:04 PM
    Okay
  • j

    jamalam

    07/29/2022, 6:43 PM
    I'm trying to use
    supabase.auth.api.setAuthCookie
    on Deno (server side), but I can't because
    Response.setHeader
    isn't a function?
  • j

    jamalam

    07/29/2022, 6:43 PM
    Should it not be
    Response.headers.set
    ?
  • j

    jaitaiwan

    07/29/2022, 10:14 PM
    Proper way to disconnect
  • p

    pixtron

    07/30/2022, 6:51 AM
    Response.setHeader
    is node.js syntax to set a header on a response. Deno seems to use Fetch API where it is indeed
    Response.headers.set
    The supabase api
    setAuthCookie
    seems to be only implemented for Next.js & Express https://github.com/supabase/gotrue-js/blob/e0ff2d8923c2f97370409ba517191e40caa79038/src/GoTrueApi.ts#L499
  • j

    jamalam

    07/30/2022, 8:55 AM
    Thank you
  • a

    Adi

    07/30/2022, 11:06 AM
    Anyone here used supabase? I want to sign out user from server side not from frontend. Can I use this on server side https://supabase.com/docs/reference/dart/auth-signout it is for DART I don;t see samething available for JS any idea anyone?
  • g

    garyaustin

    07/30/2022, 12:43 PM
    The 2nd paragraph here seems what you want. https://supabase.com/docs/reference/javascript/auth-signout
  • a

    Adi

    07/30/2022, 4:39 PM
    Is it possible to get user details with JWT on backend side itself?
  • i

    iLikeBikes

    07/30/2022, 5:22 PM
    have you tried inspecting the JWT? https://jwt.io/
  • g

    garyaustin

    07/30/2022, 5:48 PM
    There is also this: https://supabase.com/docs/reference/javascript/auth-api-getuser but it does make a server call.
  • a

    Adi

    07/30/2022, 6:27 PM
    In my case I have a webhook which listens to app uninstall event. I want to signout user from server side when app uninstall event happens. But I don't have request object available for that. In that case I only have user Id of supabase auth.user. Can I query user details with JWT access token and then just invalidate it or revoke it? cc: @garyaustin
    g
    p
    • 3
    • 12
  • t

    Taofiq

    07/30/2022, 7:39 PM
    Hi Guys so i am creating an app with supabase and nextjs and doing the authentication with supabase in built magic link....everything works but my issue is, if i login with user A and say i create a post then logout and login with user B, user B has user A details and i guess user B suppose to have fresh page with no details since it's a new account
    s
    • 2
    • 3
  • s

    silentworks

    07/30/2022, 11:58 PM
    Hi Guys so i am creating an app with
  • s

    STILLWATER;

    07/31/2022, 8:46 AM
    After creating unique of 2 columns together, how do i add rows in such a way that if it exists it ignores it or something instead of crashing or duplicate entries. Using supabasejs in node, i remember it was on conflict or something but can anyone help confirming syntax and flow
  • s

    semicolondev

    07/31/2022, 8:50 AM
    Hey, Folks. How do I convert a
    string
    value to
    number
    before
    orderBy
    using the supabase client? I have a table with data inside a
    JSONb
    column. I want to query the results with
    ASC
    values of that column.
    Copy code
    ts
    
    const { data, error } = await supabase
        .from<definitions["videos"]>("videos")
        .select("*")
        .order("meta->stats->likeCount", { ascending: false }, ) // <- likesCount is a string so it's returning wrong results.
        .eq("channel_id", channelId)
        .range(from, to)
        .limit(5);
    I'd really appreciate any help.
  • t

    Taofiq

    08/01/2022, 7:38 AM
    Hey Devs, When you create an object in nextjs say for example
    Copy code
    {
    price: 50,
    name: "Burger",
    quantity: 2
    }
    Is it possible to render it in real time or simulataneously without having to reload the page
  • t

    Taofiq

    08/01/2022, 7:39 AM
    Currently I have to refresh the page to see what object I have created on the homepage
  • l

    larryM

    08/01/2022, 2:11 PM
    Im getting a weird error of
    { message: 'Request Failed' }
    when using the sign in api from the javascript library:
    Copy code
    const { user, session, error } = await supabase.auth.signIn({
      email: 'example@email.com',
      password: 'example-password',
    })
    has anyone ran into this issue before? I've even tried setting up a test project and it still throws the same error.
    s
    t
    • 3
    • 15
  • p

    Phenomen

    08/01/2022, 3:19 PM
    [SvelteKit] I have a huge form: hundreds of inputs of every possible type... Is there some shortcut to save the whole form into Supabase and load back into the app without binding every single value of every input?
  • j

    Jake378

    08/01/2022, 3:20 PM
    What is this project for? Just wondering why your trying to gather hundreds of inputs.
  • p

    Phenomen

    08/01/2022, 3:21 PM
    Character Sheet for pretty complex tabletop RPG. Like D&D, ya know.
  • j

    Jake378

    08/01/2022, 3:21 PM
    Oh, hmm interesting.
1...7778798081Latest