https://supabase.com/ logo
Join Discord
Powered by
# help
  • l

    liljamesjohn

    08/13/2021, 6:08 AM
    Where can I find documentation on what "onAuthStateChange", "refreshSession", "setAuth" and "setSession" do? In the docs it doesn't really point to these anywhere (That I can see)
    s
    • 2
    • 2
  • p

    Poypoypoy

    08/13/2021, 6:33 AM
    guys, why i receveid text/plain in storage, uploading images
  • u

    __ianjasper

    08/13/2021, 7:44 AM
    Is union all recommended?
  • u

    __ianjasper

    08/13/2021, 7:44 AM
    In sql in general?
  • u

    __ianjasper

    08/13/2021, 7:44 AM
    Or should I use STI?
  • u

    __ianjasper

    08/13/2021, 7:45 AM
    Should I avoid one over the other? In ur experience what does scale and what not on your use cases?
  • s

    soedirgo

    08/13/2021, 8:48 AM
    Auth docs
  • m

    Maus

    08/13/2021, 9:28 AM
    .order('name', {foreignTable: 'cities', ascending: true})
  • m

    Maus

    08/13/2021, 9:31 AM
    https://supabase.io/docs/reference/javascript/subscribe#listening-to-row-level-changes
    Copy code
    const mySubscription = supabase
      .from('todos:name=ilike.%Hi%')
      .on('*', payload => {
        console.log('Change received!', payload)
      })
      .subscribe()
  • e

    Evostance

    08/13/2021, 11:57 AM
    Has anyone found a way to create an entry in say a "profiles" table when a new user is added via Auth?
  • f

    florian-lefebvre

    08/13/2021, 12:13 PM
    You can do that using postgres triggers I think
  • f

    florian-lefebvre

    08/13/2021, 12:14 PM
    I don't know if it's possible to create them using the alpha supabase functions
  • e

    Evostance

    08/13/2021, 12:24 PM
    Hmm OK, might not do it that way
  • p

    Poypoypoy

    08/13/2021, 12:57 PM
    anyone working in uploading image in storage?
  • j

    jbergius

    08/13/2021, 1:09 PM
    I'm using a function for that. Looks like this: Haven't written it myself though. Worth noticing is that I'm only using facebook auth
  • s

    ShaneTheKing

    08/13/2021, 2:28 PM
    In what way? I've used the Javascript API to do it successfully, it's pretty easy through that.
  • p

    Poypoypoy

    08/13/2021, 2:30 PM
    you encounter this one?
  • p

    Poypoypoy

    08/13/2021, 2:30 PM
    type is equal to text instead of image
  • p

    Poypoypoy

    08/13/2021, 2:35 PM
    this is the header
  • s

    ShaneTheKing

    08/13/2021, 2:35 PM
    Weird, I never saw that happen. I guess you should double check the MIME type being sent when you make the request
  • s

    ShaneTheKing

    08/13/2021, 2:35 PM
    what's in the request headers?
  • s

    ShaneTheKing

    08/13/2021, 2:35 PM
    The response headers should be a JSON response, that's what the API is returning
  • p

    Poypoypoy

    08/13/2021, 2:36 PM
    when i used ant desing for the input image i got this error
  • p

    Poypoypoy

    08/13/2021, 2:36 PM
    when i used normal input field type file its working
  • p

    Poypoypoy

    08/13/2021, 2:37 PM
    i can share my screen is supafan channel
  • s

    ShaneTheKing

    08/13/2021, 2:39 PM
    Sorry, I'm unable to view a stream right now 😕 Hopefully somebody else can better help you, not sure what might be going on 😬
  • p

    Poypoypoy

    08/13/2021, 2:39 PM
    thanks man , appreciate your effort to help
  • g

    GandalfG

    08/13/2021, 4:33 PM
    Quick question (dont shoot 😛 ) can I implement Stripe payments with supabase? Or is it better to go with Firebase cloud functions?
  • r

    RB_Gaura

    08/13/2021, 4:43 PM
    Does anyone know a way to filter through a date range on the client-side?
  • r

    Rob W

    08/13/2021, 4:45 PM
    Here is a Vercel / Next.js Supabase with Stripe integration: https://github.com/vercel/nextjs-subscription-payments
1...495051...316Latest