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

    EmreCan

    09/03/2021, 11:49 AM
    i get the following message
  • e

    EmreCan

    09/03/2021, 11:50 AM
    client.js?06a0:57 Promise { { user: null, data: null, error: TypeError: Cannot read property 'cookies' of undefined at GoTrueApi. (~~\@supabase\gotrue-js\dist\main\GoTrueApi.js:358:26) at Generator.next () at ~~\node_modules\@supabase\gotrue-js\dist\main\GoTrueApi.js:8:71 at new Promise () at __awaiter (~~\node_modules\@supabase\gotrue-js\dist\main\GoTrueApi.js:4:12) at GoTrueApi.getUserByCookie (~~\node_modules\@supabase\gotrue-js\dist\main\GoTrueApi.js:356:16) at server.js:4647:76 at promisify (server.js:3750:15) at middlewareSeries (server.js:3729:10) at module.exports../.nuxt/server.js.__webpack_exports__.default (server.js:3221:75) } }
  • j

    Julián

    09/03/2021, 11:53 AM
    Supabase merges the accounts, I think it's Kong, what you find is very interesting, let's wait and see what the others say.
  • w

    wiverson

    09/03/2021, 3:06 PM
    Is the account merge behavior documented anywhere? What do you mean "Kong"?
  • w

    wiverson

    09/03/2021, 3:09 PM
    It's a bit strange to me that the merge happens automatically based on email. What happens if email addresses change?
  • s

    Scott P

    09/03/2021, 3:18 PM
    Kong is the service which handles routing requests to the auth, rest, realtime and storage services
  • w

    wiverson

    09/03/2021, 3:47 PM
    So is Kong the system that is doing the account merging?
  • p

    Poypoypoy

    09/03/2021, 3:51 PM
    hi anyone know how to get all data in authentication users
  • c

    cbzehner

    09/03/2021, 5:43 PM
    I'm having trouble with setting up FB Login via SB. For some reason, every time I try and login I see that the
    state
    hasn't been passed through properly from SB -> FB -> SB again?
    Copy code
    time="2021-09-03T17:40:58Z" level=info msg="request completed" component=api duration=57509 method=GET path=/callback referer= remote_addr="85.76.2.80:50094" request_id=e8100a09-0135-4481-a102-d26647ae0d6c status=400
    time="2021-09-03T17:40:58Z" level=info msg="400: OAuth state parameter missing" component=api error="400: OAuth state parameter missing" method=GET path=/callback referer= remote_addr="85.76.2.80:50094" request_id=e8100a09-0135-4481-a102-d26647ae0d6c
    time="2021-09-03T17:40:58Z" level=info msg="request started" component=api method=GET path=/callback referer= remote_addr="85.76.2.80:50094" request_id=e8100a09-0135-4481-a102-d26647ae0d6c
    time="2021-09-03T17:40:52Z" level=info msg="request completed" component=api duration=231769 method=GET path=/authorize referer="http://localhost:3000/" remote_addr="85.76.2.80:50094" request_id=d91c540d-ed1e-400f-b612-77c850e815e2 status=302
    time="2021-09-03T17:40:52Z" level=info msg="Redirecting to external provider" component=api method=GET path=/authorize provider=facebook referer="http://localhost:3000/" remote_addr="85.76.2.80:50094" request_id=d91c540d-ed1e-400f-b612-77c850e815e2
    time="2021-09-03T17:40:52Z" level=info msg="request started" component=api method=GET path=/authorize referer="http://localhost:3000/" remote_addr="85.76.2.80:50094" request_id=d91c540d-ed1e-400f-b612-77c850e815e2
  • c

    cbzehner

    09/03/2021, 5:43 PM
    I think I've followed https://supabase.io/docs/guides/auth/auth-facebook correctly? But maybe I've missed something. Has anyone seen this before?
  • c

    cbzehner

    09/03/2021, 5:46 PM
    calling supabase.auth.signIn(...) with the FB Provider ends up sending me to https://www.facebook.com/dialog/oauth?client_id=&redirect_uri=https%3A%2F%2F.supabase.co%2Fauth%2Fv1%2Fcallback&response_type=code&scope=email%20public_profile&state= The JWT data looks like
    Copy code
    {
      "exp": 1630691374,
      "site_url": "https://connections.internationaltechnology.co/",
      "id": "00000000-0000-0000-0000-000000000000",
      "netlify_id": "",
      "function_hooks": null,
      "provider": "facebook",
      "referrer": "https://connections.internationaltechnology.co/"
    }
    I'm wondering if the issue is that the site_url isn't localhost?
  • a

    ankitjey

    09/03/2021, 6:20 PM
    How can I do local login while developing while my application is live, I am using google login, and on redirect it always redirects to the website url instead of local which I want. Is there someway to configure this? Also I have the correct redirect specified using .env.local ? Can someone help me with this? Thanks in advance
  • c

    cbzehner

    09/03/2021, 6:33 PM
    @User can you try going into your auth settings and switching the values of "Site URL" and "Redirect URL"? I have the same issue with the FB provider and that worked for me
  • c

    cbzehner

    09/03/2021, 6:34 PM
    This is what I originally had, constantly being redirected to the Site URL even though my code specified a
    redirectTo
    with localhost
  • c

    cbzehner

    09/03/2021, 6:34 PM
    This change got my 3rd party auth redirecting locally
  • c

    cbzehner

    09/03/2021, 6:34 PM
    Screenshot of my code
  • a

    ankitjey

    09/03/2021, 6:40 PM
    @User Hey that works(and have been doing that), but that would break the auth on the live website 😢 . Is there no other way around. I guess there should be something for local development after release to production
  • c

    cbzehner

    09/03/2021, 6:43 PM
    It seems like this has been reported a bunch of times and potentially fixed more than once
  • c

    cbzehner

    09/03/2021, 6:43 PM
    I'm writing up a bug report, I'll link it here so you can follow along -- just give me a few min
  • c

    cbzehner

    09/03/2021, 6:43 PM
    Trying to make it as easy as possible to understand/repro
  • p

    Poypoypoy

    09/03/2021, 6:46 PM
    why i cant delete my auth user?
  • c

    cbzehner

    09/03/2021, 6:49 PM
    @User https://github.com/supabase/supabase/issues/3069
  • a

    ankitjey

    09/03/2021, 6:56 PM
    Thanks a lot @User , I will follow the issue
  • s

    Scott Prins

    09/03/2021, 7:51 PM
    IF I am implementing supabase auth and more into an existing project, I see that there is a schema.sql file in any new project templates from supabase, at what point should I include this into my project? I found this out after being recommended to change the schema.sql file if I wanted to change what data is created with each new user after authenticating and what is being written to the users table.
  • s

    silentworks

    09/03/2021, 8:02 PM
    Can you point me to where you find this file please? because the supabase-js library doesn't have any sql files shipped with it
  • s

    Scott Prins

    09/03/2021, 8:04 PM
    https://github.com/vercel/nextjs-subscription-payments/blob/main/schema.sql
  • s

    Scott Prins

    09/03/2021, 8:05 PM
    it was found in this repo, and I was asking yesterday about how to include auth emails in the user file upon signup and they had recommended to add a couple arguments to that function below the user table creation
  • s

    Scott Prins

    09/03/2021, 8:08 PM
    one major question I have is when and how does supabase use this file if it exists, because I want to replicate the behavior of this particular auth flow and add auth/more to my project, but I need to define this specific set of rules for user creation
  • s

    Scott P

    09/03/2021, 8:27 PM
    That schema file doesn't appear to be used within the project itself, at least not directly by the code. I would imagine it exists so that someone can recreate the schema by running the contents via the SQL editor prior to deploying the project.
  • s

    Scott Prins

    09/03/2021, 8:28 PM
    Makes much more sense now, I was kinda confused as it was never actually referenced in the project build scripts, supabase client initialization, or anything of the like 😅 thanks to you and @silentworks for the help!
1...727374...316Latest