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

    morgan

    08/18/2021, 9:22 AM
    If I try to use
    auth.signIn()
    with a none existing email for the magic link. An error 500 is returned
    Database error saving new user'
    Just double checking if this a bug error message? I don't think users should attempted to be saved using the signIn functions
  • e

    Evostance

    08/18/2021, 10:05 AM
    Hey all, does anyone know how to sort by date inside JSONB? My JSON looks like the below:
    Copy code
    json
    {
      "live": false,
      "notificationItems": [
        "NotificationRequestItem": {
           "eventDate": "2021-08-09T14:19:49+02:00"
        }
      ]
    }
    Trying to figure out how to order it as its inside an array, but the array item only ever contains 1 item. Assuming I need to convert it somehow but unsure how to do this?
    Copy code
    js
    .order("data->notificationItems->NotificationRequestItem->eventDate", {
              ascending: false,
            });
  • y

    Yggdrasill

    08/18/2021, 11:16 AM
    Is there a way to have multiple tables for user authentication? To be able to have the same email in both tables (cover multiple services) in one project.
  • g

    GandalfG

    08/18/2021, 11:57 AM
    Hey folks! Any ideas around how to implement Stripe payments when the BE is done on Supabase? Im using NextJS for the frontend.
    b
    • 2
    • 5
  • b

    burggraf

    08/18/2021, 1:26 PM
    Stripe
  • c

    Cartiers

    08/18/2021, 6:54 PM
    Hello everyone, Im a little new to Supabase. I am currently using Auth to allow users to sign up through Discord. I would like to extend the session data that is returned when I run the code below
    Copy code
    js
    const { data: user, error } = await supabase.auth.api.getUser(
        req.cookies["sb:token"]
     );
    I would like to add the users access token returned by the provider as i need it to interact with Discords API
    • 1
    • 4
  • j

    jon114

    08/18/2021, 8:04 PM
    Hey everyone! Does anybody have experience with using Supabase / Expo using OAuth? The example project uses username + password, but I found this section in the docs: https://supabase.io/docs/reference/javascript/auth-signin#sign-in-using-a-refresh-token-eg-in-react-native This works locally, but when I run this app in TestFlight it throws an "invalid redirectUrl" error. What URL do I need to add to my Supabase allowlist? i.e... What's the output of
    AuthSession.makeRedirectUri({ useProxy: false })
    ?
  • j

    jon114

    08/18/2021, 8:05 PM
    I could (and will) just render it out but I wanted to ask here in case there's something else I need to keep in mind
  • m

    Marky

    08/18/2021, 9:48 PM
    I am trying to call a stored procedure with arguments, but I am getting type cast errors and it isn't finding the function.
    Copy code
    const { data, error } = await this.database.rpc('boostPool', {
          pool_name: pool,
          amount: Number(newBoost)
        })
    function public.boostPool(amount => text, pool_name => text) does not exist
  • m

    Marky

    08/18/2021, 9:53 PM
    Copy code
    console.log(typeof quantity)
    number
  • s

    santnorm

    08/18/2021, 10:14 PM
    We are having trouble with Azure auth on supabase. We are getting an error after login: ?error=server_error&error_description=ERROR%3A+permission+denied+for+table+audit_log_entries+%28SQLSTATE+42501%29#/authentication
  • j

    jordan801

    08/18/2021, 10:27 PM
    Hiya! I am having some issues with my auth flow. (this may be more at home in sql, but it may not) When I attempt to authenticate with Azure (note this is a single DB, others work fine) I saw:
    Copy code
    {
      "message": "An invalid response was received from the upstream server"
    }
    I found in the logs that a migration was failing. It was trying to create the column confirmed_at on the auth.users table. But it already existed. So I nuked the column, allowing the migration to happily go on its way. BUT THEN! I had a new issue. When I attempt to login using Azure auth I get a new error message:
    permission denied for table audit_log_entries
    . Ok so I browse my users and permissions and I see that there's only 1 user, the user made by supabase. I attempt to manipulate the table via postgres client. It works fine. Hmf. Dead end. I try granting permission to the user, you know, just in case. No change. So, what user is it trying to manipulate this table with, how did it get this user, and how do I fix it? Also, how did all of this happen? For anyone who may find this in the future. The issue is my backup manipulating the auth schema. Exclude the auth schema from backups unless you know what you're doing 😄
  • m

    MrWolf

    08/19/2021, 3:14 AM
    Has anyone here used the c# wrapper?
  • l

    larryM

    08/19/2021, 5:03 AM
    Is it possible to update a projects password?
  • l

    larryM

    08/19/2021, 5:34 AM
    nvm found it 😆
  • p

    Peanut

    08/19/2021, 5:40 AM
    I think all functions are lowercase named I also had a problem with argument order Try single argument func
  • m

    Marky

    08/19/2021, 5:42 AM
    Figured it out. Stored procedures are not supported had to use functions.
  • m

    Marky

    08/19/2021, 5:42 AM
    Docs say stored procedures though so confusing.
  • p

    Peanut

    08/19/2021, 5:44 AM
    Yeah I agree
  • p

    Peanut

    08/19/2021, 5:48 AM
    You should update the docs 🙂
  • m

    Marky

    08/19/2021, 5:55 AM
    Why me I didn’t make it.
  • m

    Marky

    08/19/2021, 5:55 AM
    Still trying to figure this stuff out myself.
  • p

    Peanut

    08/19/2021, 7:30 AM
    Takes 5 seconds and helps the next person out
  • p

    Peanut

    08/19/2021, 7:30 AM
    Open source etc
  • m

    Marky

    08/19/2021, 8:09 AM
    Took a lot longer than 5 seconds, and rarely do these get approved but here you go.
  • m

    Marky

    08/19/2021, 8:09 AM
    https://github.com/supabase/supabase/pull/2897
  • s

    soedirgo

    08/19/2021, 9:46 AM
    I'm guessing you didn't surround the function name with quotes when creating the function (see https://github.com/supabase/supabase/discussions/2896). FTR, Postgres functions (i.e.
    CREATE FUNCTION
    etc.) are exactly the Postgres-speak for "stored procedures", though technically there's also
    CREATE PROCEDURE
    that's less commonly used.
  • u

    user

    08/19/2021, 11:32 AM
    can someone show an example on how i would update a column of a table that is an array of json type? this column has multiple ojbects and how i would i delete/add to this array?
  • u

    user

    08/19/2021, 11:32 AM
    documentation only shows updating normal json objects but not [] json
  • y

    yurix

    08/19/2021, 11:34 AM
    Hello partners! How and when are you renewing the access token? I currently have a problem, I have 2 access points to supabase, 1 from the frontend and another from a resource server, the problem is that on the front, when an access token expires, the supabase api keeps returning data and does not It says nothing about that it has expired, but on my resource server trying to get the user's information through the token, it tells me that it has indeed expired. It is strange why before in the frontend (a few days ago) when I got an error when obtaining the user's information, it automatically launched the logout, but now that does not happen, because it seems that it does not expire. Any idea why this happens?
1...555657...316Latest