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

    Taner Nill

    02/02/2022, 7:49 PM
    I followed these tuts https://dev.to/dabit3/magic-link-authentication-and-route-controls-with-supabase-and-next-js-leo + https://ruanmartinelli.com/posts/supabase-authentication-react ... but can't figure out how to convert this next js feature with API back to pure react...
  • t

    Taner Nill

    02/02/2022, 7:50 PM
    so that my state persist with the server
  • a

    AmusedGrape

    02/02/2022, 7:56 PM
    That should work fine with React.js, the API that I'm using there is an Express server.
  • a

    AmusedGrape

    02/02/2022, 7:56 PM
    No API routes were used
  • t

    Taner Nill

    02/02/2022, 7:57 PM
    react native doesn't support API routes like in next js...
  • t

    Taner Nill

    02/02/2022, 7:57 PM
    I am having this error
  • a

    AmusedGrape

    02/02/2022, 7:59 PM
    I have no idea what you're doing, if you're using React Native then you need to find a tut for that, it's not the same. You're also fetching a jsx file from a path, what I'm doing is fetching from an express server, using REST.
  • t

    Taner Nill

    02/02/2022, 8:02 PM
    I am trying to achieve state persistance like in next js ... but in react native... (I am such a nub in front end so excuse my questions) ... probably I also need express....
  • a

    AmusedGrape

    02/02/2022, 8:03 PM
    There are plenty of React Native state libraries, one I know if is MobX. Express is the backend library you want for running your API
  • o

    owonwo

    02/04/2022, 3:32 AM
    Hello Supabasers.
  • o

    owonwo

    02/04/2022, 3:33 AM
    I'm having difficulties getting the Realtime Subscription feature working in my project. Can anyone help me take a look?
    g
    h
    • 3
    • 53
  • o

    owonwo

    02/04/2022, 3:33 AM
    I honestly can't seem to get it to work even after debugging.
  • h

    Harshita Sharma

    02/04/2022, 3:58 AM
    Hello , I am seeking some help to enable subscription.Basically whenever user clicks to subscribe button email of user to be saved in database and from next time whenever newsletters is sent it should be sent to all the subscribers.Can anyone help me
    o
    • 2
    • 18
  • l

    larryM

    02/04/2022, 7:27 PM
    hey @User do you have any experience in working with the standalone realtime library? Im having an issue where no data comes through the sockets unless its listening to all ("*") database changes
    g
    • 2
    • 9
  • n

    namchee

    02/05/2022, 6:27 AM
    Hi, I have a bigint column, which is a 2^64 numeric value. However, it seems that the client casted it to number type in JavaScript which have a max limit of 2^53, how can I force my supabase client to always return it as a string?
  • w

    Will Lutz

    02/05/2022, 8:04 PM
    Anyone have an example of using insert with multiple tables and one api call with the javascript sdk? Where creating a row in a table with a foreign key, creating both rows at the same api call. I'm imaging the behind-the-scenes using LAST_INSERT_ID().
  • g

    garyaustin

    02/05/2022, 9:14 PM
    You will need to do that with an rpc call and a postgresql function executing the two inserts.
  • w

    Will Lutz

    02/05/2022, 10:15 PM
    That's what I was guessing, I appreciate the confirmation.
  • j

    joshcowan25

    02/06/2022, 11:30 AM
    I'm trying to order a custom request. I get de data back, but it is not ordered the way I want. Here is my function:
  • g

    gleki

    02/07/2022, 1:44 PM
    What's the best recommended and tested practice for adding standalone backend connected to the same database as the frontend and with same jwtokens Any bolierplates where supabase js is used backend-side?
  • m

    Marc

    02/08/2022, 1:26 PM
    whats the best way to delete all rows from all tables?
    s
    • 2
    • 1
  • b

    beru

    02/09/2022, 2:55 AM
    @User hi sorry for pinging, I have an issue with your updated code for sveltekit supabase auth. in my`onAuthStateChange` function,
    session.set
    throws the error
    Error: Cannot set session store before subscribing
    . Do you perhaps know why this could happen? before the breaking update this wasn't an issue
    s
    • 2
    • 7
  • s

    silentworks

    02/09/2022, 12:10 PM
    SvelteKit session store
  • h

    HerbeMalveillante

    02/09/2022, 2:43 PM
    Hello ! I'm currently coding a post creation system. The posts are stored in a table, using the author id as a foreign key. How can I retrieve the id of the currently logged in user ? I'm using JavaScript with Svelte I'm also using the default users table provided by supabase I can retrieve an user object that only has three methods (set, update, and subscribe), but i can't find any documentation about this object, and I can't find the id within it.
    s
    • 2
    • 6
  • s

    silentworks

    02/09/2022, 3:05 PM
    Svelte and Supabase
  • s

    swiss

    02/09/2022, 9:58 PM
    Hi all, why doesn't this basic query work?
    Copy code
    const { data, error } = await supabase
        .from("actions")
        .select()
        .not("status", "eq", "complete")
    I have a column of status (type varchar) and the default value of the column is NULL (which is my only guess as to why this isn't working). When i remove the not filter, I get my data back so it's not that there's another general error like my keys not working or something. I also have had another filter working, which I'm trying to combine with this one, but removed for the sake of debugging.
    g
    • 2
    • 5
  • l

    libovness

    02/10/2022, 2:44 PM
    Hi all - we're getting a
    {"message":"no Route matched with those values"}
    error for all our social logins but not email/pass. The URL when we get this error is
    [SUPABASE_ANON_KEY].supabase.co
    . Any ideas?
  • l

    libovness

    02/10/2022, 2:51 PM
    this used to work, no longer does. We're using
    Supabase Auth
    .
  • k

    Keooo

    02/10/2022, 9:08 PM
    anyone had this issue before?
  • k

    Keooo

    02/10/2022, 9:09 PM
    this was the request. it used to work not sure why it doesn't now
1...464748...81Latest