Code Monkey home page Code Monkey logo

Comments (9)

jide avatar jide commented on June 11, 2024 2

Ok, I reproduced this, and I confirm this is a bug recently introduced.

It basically breaks signups for apps where an email is sent using generateLink(), which is really bad.

To reproduce:

  • Create a supabase project
  • Clone this repository
  • Set env vars
  • Launch node index.js
  • It throws AuthApiError: User with this email not found

https://github.com/jide/supabase-issue-875

from auth-js.

vacas5 avatar vacas5 commented on June 11, 2024 1

Currently experiencing something similar, but using "invite" type when generating a link.

For local development, all is well, but in github actions the following is failing with [AuthApiError]: User with this email not found

const { data, error } = await supabase.auth.admin.generateLink({
  type: 'invite',
  email
})

System information:

@supabase/supabase-js 2.39.3

node-version: 18.19.1

Operating System
Ubuntu
22.04.4
LTS

from auth-js.

frschi avatar frschi commented on June 11, 2024 1

I had the same issue in my local supabase docker. At the time writing this comment, the docker-compose.yml in the official supabase repo docker folder, the auth service (supabase/gotrue) has verison: v2.145.0, i updated it to the latest version on docker hub which is supabase/gotrue:v2.150.1 and the problem was solved. @tech-betastreets so from your comment it seems like your GoTrue version is too old

from auth-js.

kangmingtay avatar kangmingtay commented on June 11, 2024 1

@vacas5 upgrading the CLI upgrades the auth service's docker image version used which should contain the fix

from auth-js.

jide avatar jide commented on June 11, 2024

The issue has been fixed.

Capture d’écran 2024-04-04 à 00 37 52

from auth-js.

ham-evans avatar ham-evans commented on June 11, 2024

I'm also experiencing this issue. Any solutions? Do I need to update my Supabase Postgres version?

from auth-js.

jide avatar jide commented on June 11, 2024

Reopening to bring supabase maintainers attention.

from auth-js.

tech-betastreets avatar tech-betastreets commented on June 11, 2024

Edit: @frschi suggestion to upgrade GoTrue resolved the issue for me

Facing same issue on Local

  const link = await supabase.auth.admin.generateLink({
    type: 'signup',
    email,
    password
  });

Is giving the following error

error: AuthApiError: User with this email not found

App
https://esm.sh/@supabase/[email protected]?target=deno
supabase-edge-runtime-1.45.2 (compatible with Deno v1.40.3)

Supabase
GoTrue version: 2.145.0
PostgREST version: 12.0.1
Postgres version: 15.1.0.1417

from auth-js.

vacas5 avatar vacas5 commented on June 11, 2024

For my issue, the reason that it was working for local development but not in Github actions is because locally we were using v1.153.4 of supabase cli, which was installing v2.130.0 of gotrue. When I set my action to the following the issue resolved.

- name: Setup Supabase
        uses: supabase/setup-cli@v1
        with:
          version: 1.153.4

I have yet to try upgrading to the latest version of the CLI.

from auth-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.