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

    whyredvince

    12/17/2021, 3:55 PM
    I am getting 500 error on /api what to do? I have tried restarting server but it just says restart requested server restart but then nothing happens.
  • p

    pedrodiaz

    12/17/2021, 6:20 PM
    Everything fine here
  • e

    erik_flywheel

    12/17/2021, 10:49 PM
    Hey everyone. Here's the error I'm getting. Not sure if this is related to the same issue or not.
    Copy code
    {
      "message": "JWSError (CompactDecodeError Invalid number of parts: Expected 3 parts; got 1)"
    }
  • j

    jonask

    12/17/2021, 10:52 PM
    Hey Supabase, I cant seem to get a list of public files in a public bucket , this is based on the user-management template:
    Copy code
    const data = supabase.storage.from(DEFAULT_AVATARS_BUCKET) .list('public',{sortBy:{column:'created_at',order:"desc"},limit:1000})
  • p

    psi2kgcm

    12/18/2021, 4:14 AM
    The auth.user table docs and advice?
    • 1
    • 2
  • s

    shivam51

    12/18/2021, 4:41 AM
    Why am I getting
    JWSError JWSInvalidSignature
    error pop up in Supabase dashboard?
  • t

    thyme

    12/18/2021, 7:23 AM
    Is there any way to add additional info to the sign in for the decoded jwt? We're using supabase.auth.signin. Currently the decoded jwt only gives the basic supabase info. We were wondering if it's possible to add more without needing to populate that user Metadata json field
  • a

    Anoushk

    12/18/2021, 8:20 AM
    how do i redirect to a specific url once discord oauth is done
  • a

    Anoushk

    12/18/2021, 8:20 AM
    rn it just goes back to root url
  • j

    jensen

    12/18/2021, 8:29 AM
    Have you tried passing the
    redirectTo
    param?
    Copy code
    supabase.auth.signIn(
      {
        provider: "discord",
      },
      { redirectTo: `${process.env.REACT_APP_CLIENT_HOST}${from}` }
    );
  • a

    Anoushk

    12/18/2021, 9:33 AM
    works thanks
  • m

    Markeem

    12/18/2021, 1:52 PM
    Copy code
    const { data, error } = await $supabase
      .from('profiles')
      .select('username ,updated_at')
      .lt('updated_at', DateTime.now())
    updated_at is a Timestamp and this query doesn't work. Does anyone know how to make a query like this work ?
  • m

    Markeem

    12/18/2021, 1:52 PM
    Should be Date.now()
  • j

    jensen

    12/18/2021, 6:42 PM
    @Markeem Keep in mind that Javascript "timestamps" are in
    ms
    and unix timestamps are in
    seconds
    , would likely want to convert your javascript timestamp to a unix timestamp for this comparison
  • j

    jensen

    12/18/2021, 6:42 PM
    Math.round(Date.now() / 1000)
  • m

    Markeem

    12/18/2021, 9:32 PM
    Thank you, but I am still getting this error: date/time field value out of range: "1639863069"
  • j

    jensen

    12/19/2021, 12:06 AM
    Can is see the table schema?
  • t

    thyme

    12/19/2021, 3:18 AM
    Is it possible to set a new jwt secret?
  • t

    thyme

    12/19/2021, 3:18 AM
    It seems like you get one set during setup. Haven't found a way to change it
  • s

    shivam51

    12/19/2021, 4:20 AM
    Is there a way to integrate a mail client API like Postmark with Supabase API?
  • a

    Anoushk

    12/19/2021, 6:25 AM
    How to add multiple site URLs for 3rd party auth
  • t

    tourdownunder

    12/19/2021, 7:32 AM
    In Settings -> General -> Additional Redirect URLs you can have multiple comma separated.
  • a

    Anoushk

    12/19/2021, 7:32 AM
    but that requires full exact route which i cnt since route params
  • a

    Anoushk

    12/19/2021, 7:33 AM
    i want to add a prod and dev base url
  • t

    tourdownunder

    12/19/2021, 7:33 AM
    I have
    http://localhost:5000/,https://testung.ghjkghjisknh.amplifyapp.com/
    in mine and quite sure it worked.
  • a

    Anoushk

    12/19/2021, 8:00 AM
    this is in additonal urls?
  • t

    tourdownunder

    12/19/2021, 8:01 AM
    yeah
    Additional Redirect URLs
    to be exact.
  • m

    Mihai Andrei

    12/19/2021, 9:42 AM
    Hello. Has anyone combined firebase auth with supabase database? I was curious of the approach 😬
  • m

    Markeem

    12/19/2021, 10:48 AM
    Its the user management starter schema. The updated_at field is a timestamp with timezone
  • t

    thyme

    12/19/2021, 4:17 PM
    Is there any way to change jwt secret?
1...163164165...316Latest