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

    Sleighty

    11/12/2021, 9:49 AM
    huh… then how the hell am i supposed to know whether they just signed up or if the email already exists 😂
  • e

    egnus

    11/12/2021, 9:49 AM
    I think I checked this last week and I was getting a clever error with message like
    check your email to authenticate your account
    despite the fact that I was registered and active. Very nice. Also, I dont care much about
    session
    or
    user
    or
    data
    properties because I do the login on SSR in the server, the user simply does not have access to supabase directly ever.
  • e

    egnus

    11/12/2021, 9:50 AM
    the difference is that, the message comes from error, and not from user or data
  • e

    egnus

    11/12/2021, 9:51 AM
    this is how you could distinguish the result of it
  • y

    YelloJello

    11/12/2021, 9:52 AM
    i think that's kinda the point, that you can't tell that an email exists or not. imo this is a lack of proper communication on Supabase' part, that an announcement or docs weren't added regarding a change this significant.
  • s

    Sleighty

    11/12/2021, 9:53 AM
    when i tried this the error was null, would have to double check tomorrow
  • e

    egnus

    11/12/2021, 9:54 AM
    if the error is null, and since you are using the JS in the FE. then simple do a
    getCurrentUser
    after the signup and that will tell you if all went fine
  • s

    Sleighty

    11/12/2021, 10:45 AM
    ah, sweet and simple. weird the docs don’t mention that. i really just wanted to understand what was going on since at the end of the day i’ll probably be doing this in SSR anyway
  • s

    Sleighty

    11/12/2021, 10:45 AM
    thanks 🙂
  • s

    Sleighty

    11/12/2021, 11:01 AM
    was thinking about this— when you say you do login on SSR how can the supabase library handle logging in on the server? in firebase if i recall correctly the js library is supposed to be on client side only i think?
    e
    m
    m
    • 4
    • 12
  • s

    silentworks

    11/12/2021, 11:16 AM
    Please create a thread for conversations like this, I'm finding it hard to follow.
  • e

    egnus

    11/12/2021, 12:45 PM
    Login SSR
  • h

    hoesmean

    11/12/2021, 1:35 PM
    #869406062036529193 #843999948717555735 Hello Guys, I have image as array, i got response but i cant display in react native
  • m

    Mihai

    11/13/2021, 12:54 AM
    Hello, I'm using the subscribe method described from (https://supabase.io/docs/reference/javascript/subscribe). Am I allowed to filter on the context of itself based on a column key value? similar like .from("entityName").eq("column",value) ?
    g
    • 2
    • 5
  • m

    Michael Ketzer | streamgeist.com

    11/13/2021, 1:10 PM
    Is there any memory leak known for supabase-js ? I am having a rather simple app and it ran out of memory. Round about 1.2 mio queries in 1.5 weeks. The app basically only listen to events and inserts data from those.
  • z

    zwarag

    11/14/2021, 5:46 PM
    My Table has four columns (id (pk), name, email, url) Is it possible to update the url by doing something like
    Copy code
    js
    supabase.from('profiles').upsert({id: 1, url:'something'})
    or is it necessary to do an update instead of an upsert like
    Copy code
    js
    supabase.from('profiles').update({url:'something').eq{'id': 1}
    s
    • 2
    • 1
  • s

    silentworks

    11/14/2021, 9:26 PM
    Update url column in a table
  • j

    Jacob Paris 🇨🇦

    11/15/2021, 7:24 AM
    Does the supabase ORM cache results locally or is it recommended to wrap queries in react-query, swr, etc?
  • c

    chipilov

    11/15/2021, 3:23 PM
    It seems to me that there is a problem with the way auth state can be accessed on initial page load.
    i
    j
    d
    • 4
    • 19
  • u

    user

    11/16/2021, 7:35 AM
    hey guys
  • u

    user

    11/16/2021, 7:36 AM
    I'm having problems with twitter login with a new project that I set up on supabase
  • u

    user

    11/16/2021, 7:36 AM
    looks like an issue with the cloudfront cache
  • u

    user

    11/16/2021, 7:36 AM
    can anyone help me on this please
  • x

    Xzeta

    11/17/2021, 2:43 AM
    when writing tests, do you need to mock supabase or something?
  • m

    mharms

    11/17/2021, 3:56 PM
    hey! I'm using the supabase js client together with react-query for caching request results locally. Is there a way to get the url of a request from the supabase client without making the request? this would be great to use as a key in the react-query request cache. something kinda like axios.getUri for example? does anyone know about something like this in the supabase client?
  • g

    garyaustin

    11/17/2021, 4:19 PM
    I use this to cache my query results : "query.url.search" and append the table name to the front of that. query is "query = supabase.from('table').select('*').filterstuff". I then check cache and if not there do "{ data, error,count } = await query" and save to cache with "tablename+query.url.search" as key.
  • m

    mharms

    11/17/2021, 4:33 PM
    aah I thought about it but wasn't sure if the promise would resolve just when I want to access the url param. TypeScript does complain because it's a private property, but it works, thanks!
    g
    • 2
    • 2
  • g

    garyaustin

    11/17/2021, 4:43 PM
    Query string for caching
  • u

    user

    11/17/2021, 7:44 PM
    Hi, I am a newbie dev. I want to use Discord auth to sign people up in my app. But I have a question. Can I access Discord Oauth API scopes when they sign up with Discord and get permission to do stuff on Discord OAuth API? Like for example reading Discord Guilds of the user, user identity etc.? Here's the Discord API but not sure if it's doable with Supabase Auth. https://discord.com/developers/docs/topics/oauth2
  • r

    ryexley

    11/17/2021, 7:46 PM
    Hey everyone. I've been reading through the docs, and have been having some trouble wrapping my head around something. This section in the docs states "If your database has relationships...", but I've not been able to figure out what exactly it means by relationships. I created a few tables, but wasn't able to figure out how to establish true foreign key relationships. Is that what this is referring to? Or does it just mean, for example, if I have a
    posts
    table, that has an
    author_id
    column whose value matches the
    id
    column from the
    users
    table ... is it referring to that as a relationship, even though there isn't a true foreign key between the two tables? https://supabase.io/docs/reference/javascript/select#query-foreign-tables
1...313233...81Latest