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

    garyaustin

    08/03/2022, 2:57 PM
    I m getting a bad request error when
  • u

    _nate

    08/03/2022, 4:19 PM
    Does anyone know which login component I should be using if I'm starting a fresh Next.js + React 18 project? I've found a few different options that all look quite similar and I want to make sure I'm building on top of the library that will continue to be maintained. So far I've found... - supabase/ui - this one is referenced in most examples I found, but the Readme says the Auth component is moving over to the community auth-helpers library: https://github.com/supabase/ui. I found that this component has some bugs with React 18 and an open issue pointed towards this community library: https://github.com/supabase-community/auth-helpers - supabase-community/auth-helpers - it looks like this was originally @supabase/supabase-auth-helpers/react which was later renamed? The examples in this repo are still pulling the Auth component from supabase/ui. Not sure why the official UI points here since I don't think any of these packages actually export an Auth React component. - supabase-community/auth-ui-react - no examples, but appears to be actively under development from the supabase team. This is working in my project right now but doesn't appear to be production ready
    s
    • 2
    • 2
  • s

    skyclo

    08/03/2022, 7:48 PM
    I feel like this might be a stupid question but is there a way to safely check if a file exists in a Supabase Bucket via the javascript api?
    g
    • 2
    • 2
  • a

    Albert [tox/cis]

    08/03/2022, 8:00 PM
    Well, if you're requesting access to a file which may or may not exist, what would you expect the outcome to be for either situation?
  • s

    skyclo

    08/03/2022, 8:13 PM
    Ah yeah I could just try/catch a fetch request to the public url
  • s

    skyclo

    08/03/2022, 8:13 PM
    thanks mate
  • a

    Albert [tox/cis]

    08/03/2022, 8:14 PM
    I haven't looked at the API but that should be a method to check it πŸ˜…
  • g

    garyaustin

    08/03/2022, 8:37 PM
    I feel like this might be a stupid
  • s

    silentworks

    08/03/2022, 9:16 PM
    Auth UI
  • q

    quick_piper15

    08/04/2022, 6:24 AM
    Hi, are the edge functions Stable? the website says they are experimental until Aug 1st but this message is still there...
  • e

    Equinox

    08/04/2022, 8:24 AM
    Given there are a lot of announcements in 2 weeks I guess you can expect more news at that point
  • s

    samson

    08/04/2022, 3:00 PM
    Hi there, I would like to select all records from the db where the due date is in the past. So basically when [time on record] <= [time now] I would like it to select that specific record. I've been looking around in the documentation, but couldn't really find an answer. Anyone that can help me out?
  • l

    looni

    08/04/2022, 3:02 PM
    I have a search filter like this:
    Copy code
    if (filterByName) {
        query = query.or(`first_name.ilike.${filterByName},last_name.ilike.${filterByName}`, {
            foreignTable: 'table1'
        });
    }
    What would be the best way to perform this search within two different foreign tables at the same time?
    g
    • 2
    • 4
  • m

    Mellow

    08/04/2022, 3:20 PM
    How come when using
    client.auth.signIn
    with a
    redirectTo
    it appends the query params using a
    #
    instead of
    ?
    eg it posts the url like:
    /callback#access_token=
    Am I doing something wrong?
  • g

    garyaustin

    08/04/2022, 3:29 PM
    https://github.com/supabase/supabase/discussions/2133 It is the way it works, basically.
  • m

    Mellow

    08/04/2022, 3:31 PM
    Okay. Thanks. Now I gotta figure out how to parse it
  • g

    garyaustin

    08/04/2022, 3:38 PM
    This comment shows also including as a query parameter in your email template... https://github.com/supabase/gotrue/issues/368#issuecomment-1028647419
  • m

    Mellow

    08/04/2022, 3:50 PM
    is it also normal that the sdk never sets the cookie and everything else when I use redirect to? Do I need to run that all myself now?
    g
    • 2
    • 4
  • g

    garyaustin

    08/04/2022, 3:51 PM
    I have a search filter like this ```
  • t

    trebor

    08/04/2022, 4:11 PM
    are there docs that provide return types of supabase client methods?
  • f

    felixthehat

    08/04/2022, 4:19 PM
    hi all, I'm new to supabase and I'm struggling to get a timestamp column working – everything else is working great but whatever I do I cannot seem to insert a date from javascript into my table! would love some pointers 😬
    m
    • 2
    • 9
  • m

    maiikol1192

    08/04/2022, 7:29 PM
    b
  • v

    Vik

    08/04/2022, 9:53 PM
    Has anyone successfully setup Google Auth for an Expo application? Would love to pick your brain on how you got it done. Followed the docs but I don't get the prompt to pop up and no errors. Thanks.
  • v

    Vik

    08/05/2022, 12:40 AM
    Anyone know how to change these labels when using Google auth login? This is Expo
  • v

    Vik

    08/05/2022, 1:05 AM
    If anyone has time to help me with this πŸ™‚ Thank you. https://stackoverflow.com/questions/73243642/how-to-modify-google-auth-prompt-to-show-application-name-and-details-supabase
  • j

    joshcowan25

    08/05/2022, 1:35 AM
    I'm using the new SvelteKit Auth Helpers and I would like to know what exactly is withApiAuth()? Does the redirect is use only if user does not exist? Also, there are no example for POST, so can someone just review my api endpoint and tell me if i'm missing anything? Thanks!
    s
    • 2
    • 2
  • s

    samson

    08/05/2022, 8:01 AM
    Hi there, I would like to select all records from the db where the due date is in the past. So basically when [time on record] <= [time now] I would like it to select that specific record. I've been looking around in the documentation, but couldn't really find an answer. Anyone that can help me out?
  • o

    omar

    08/05/2022, 8:14 AM
    Service key not bypassing RLS
    g
    • 2
    • 6
  • h

    hefler

    08/05/2022, 9:38 AM
    I'm completely noob regarding databases, so please bear with me if I sound dumb πŸ˜… . I've managed to create a table that uses PostGIS. In that table I have a column called
    geom
    which contains a polygon. Long story short: 'm trying to fetch it using
    @supabase/supabase-js
    . I want to find if a coordinate is found in any row. How do I do it? I get error 500 when calling like so:
    Copy code
    const { data, error } = await supabase
                        .from( 'places' )
                        .select('geom')
                        .eq('geom',`st_contains("places".geom, ${lon} ${lat})`);
    From Postgres logs I get this hint:
    "st" <-- parse error at position 2 within geometry
    g
    s
    • 3
    • 4
  • o

    omar

    08/05/2022, 1:22 PM
    Hey all my data is being ssaved with double quotes escaped so first name is "\"omar\"". How can I clean it up?
1...7778798081Latest