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

    rbkayz

    07/13/2022, 5:42 PM
    Hi folks, have a qq. I'm using invoke() to call an edge function on node. How can I access the headers in the response? Currently, if i try data.headers, it says that the function doesn't exist. Thanks a lot
    Copy code
    const {data, error} = await supabase.functions.invoke('get-message', {
        responseType: 'multipart/form-data',
        body: JSON.stringify({
            params
        })
    });
  • j

    joshcowan25

    07/13/2022, 7:10 PM
    Is there a bug with Realtime currently? Cause I remembered my code was working and now it's not...è
    m
    j
    • 3
    • 8
  • m

    mansueli

    07/13/2022, 7:38 PM
    Is there a bug with Realtime currently
  • h

    Helge

    07/13/2022, 11:41 PM
    uhm
    supabase.auth.api.signOut(token)
    should invalidate the jwt, right? I can still query though with the token after the signOut-call. Response from .signOut() is
    {error: null}
    which I assume is correct
  • g

    garyaustin

    07/13/2022, 11:48 PM
    No. SignOut invalidates all refresh tokens. JWT can not be revoked once issued.
  • h

    Helge

    07/13/2022, 11:49 PM
    ahh gotcha
  • s

    silentworks

    07/14/2022, 12:12 AM
    You want to answer that on Stack Overflow since you have the answer here? https://stackoverflow.com/questions/72972086/cannot-log-out-user-on-the-server-side-next-js-and-supabase
  • s

    silentworks

    07/14/2022, 12:13 AM
    I'm assuming that was your question on Stack Overflow, can you edit it to state what you asked here because you didn't mention anything about invalidating the JWT. (do pardon me if my assumption that the SO question is yours).
  • h

    Helge

    07/14/2022, 12:14 AM
    thats not my Q though
  • s

    silentworks

    07/14/2022, 12:14 AM
    Ok thanks, pardon me then. It seems multiple people have this same question. Maybe we should update the docs to make it more clear.
  • h

    Helge

    07/14/2022, 12:15 AM
    point them to jwt docs for the flow
  • h

    Helge

    07/14/2022, 12:15 AM
    makes total sense that a jwt cannot be revoked once issued
  • h

    Helge

    07/14/2022, 12:15 AM
    but I did not fully understand it until I read up on it
  • g

    garyaustin

    07/14/2022, 12:16 AM
    I don't think the one on github is the same issue/question. They seem to keep refreshing after signout... not clear though what is really going on.
    s
    • 2
    • 2
  • k

    Kamael愛

    07/14/2022, 4:23 AM
    Hello, why am I getting this error?
  • x

    XGeohound

    07/14/2022, 1:20 PM
    Hello Supabase-community So far I really love supabase, especially of course that it is open source, the great docs and UX 🥰 Here is my issue: Trying to create a small website with Svelte and supabase. Wanting to use LinkedIn auth and followed the instructions (inserting project url in linkedIn App and LinkedIn credentials in supabase). I can click on the LogIn button, type in my LinkedIn-credentials, allow my website to access my account and get redirected. However instead of a successful session I get the following error message in my URL bar
    error=server_error&error_description=Unable+to+exchange+external+code%3A+AQSHg_omRSOVd33nWtE8o38xuU...
    LogIn via magic link does work however... Google search did not really reveal anything about that error... I used for my Svelte project the Supabase documentation skeleton (https://supabase.com/docs/guides/with-sveltekit) Many thanks in advance for help! Right now, I do not even know, where exactly I have to check the root cause of the error...
  • j

    Joshios

    07/14/2022, 6:18 PM
    I am using the useRealTime hook and I created a new cloud instance hosted by Supabase and it’s not updated unless I refresh unfortunately I saw this and ran the sql fix in the editor but it didn’t work https://github.com/supabase/realtime/issues/265
  • j

    Joshios

    07/14/2022, 6:18 PM
    I’m not using RLS
    g
    t
    +2
    • 5
    • 75
  • v

    Valentine

    07/14/2022, 6:29 PM
    Hey everyone, I was wondering if there's anything planned in terms of allowing the client to not talk to Supabase via individual API calls, but to maybe establish a connection with the database and work from there? Or am I missing something
    l
    s
    • 3
    • 2
  • l

    laznic

    07/14/2022, 8:49 PM
    Blocking individual API calls
  • g

    garyaustin

    07/15/2022, 1:16 AM
    Realtime not working on new instance
  • d

    dr44

    07/15/2022, 4:05 PM
    Hi team i am getting `server error error
  • d

    dr44

    07/15/2022, 4:22 PM
    I'm having the same error. Did you find a solution?
  • x

    XGeohound

    07/15/2022, 4:47 PM
    according to this thread that's the only documented solution. https://github.com/supabase/supabase/discussions/1192 Did not solve the issue for me though... I suspect a supabase bug with the linkedin implementation, since other social logins do work (tested with Discord login)
  • b

    bhaskar

    07/15/2022, 6:10 PM
    Hi, i am getting new row violates row-level security policy for table "prices" i deleted all the policies as well on that table, still getting it
  • b

    bhaskar

    07/15/2022, 6:15 PM
    only disabling RLS for the table fixed the issue. could someone help me with this?
  • g

    garyaustin

    07/15/2022, 9:36 PM
    I had just responded to your thread in general. Please do not double post. Basically you do not provide enough info to be able to help is the current answer until you provide more.
  • l

    Lukas

    07/16/2022, 8:42 AM
    How can I add something to an array on supabase without getting the array from supabase, using push, then upserting it again
  • g

    garyaustin

    07/16/2022, 12:20 PM
    You would have to do that thru and rpc / Postgres function call.
  • t

    ThePhilip

    07/16/2022, 2:50 PM
    Question regarding the NextJS Auth Helpers, What's the correct way to retrieve the user object on an API route? Somewhat related to
    https://github.com/supabase-community/auth-helpers/blob/main/packages/nextjs/README.md#protecting-api-routes
    but not exactly the same
1...707172...81Latest