Comments (9)
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.
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.
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.
@vacas5 upgrading the CLI upgrades the auth service's docker image version used which should contain the fix
from auth-js.
The issue has been fixed.
from auth-js.
I'm also experiencing this issue. Any solutions? Do I need to update my Supabase Postgres version?
from auth-js.
Reopening to bring supabase maintainers attention.
from auth-js.
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.
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)
- Functions that call `_removeSession` internally do not trigger `SIGNED_OUT` event when the function fails HOT 5
- `GoTrueClient` Memory Leak HOT 24
- No recovery email sent after sign up a second time after provider login HOT 1
- Error: Permission denied to access property "then" for Firefox Extensions HOT 1
- supabase.auth.signInWithIdToken() authunknownerror when used on real ios device
- Add missing 'is_anonymous' property to the User type
- Can't get rid of getUser() warning HOT 121
- Google OAuth doesn't work in Safari with next-js-auth-helpers HOT 1
- New, unsigned in user can not be deleted from supabase console. HOT 1
- [email protected] breaks client auth with edge functions HOT 15
- New error code is missing in error object
- user object warning logged, even when not touching `session.user` HOT 13
- Security and performance risk with `getUser` and `getSession` HOT 6
- Global supabase.auth.signOut() doesn't fire the "SIGNED_OUT" event for onAuthStateChange in other instances where a user is logged in HOT 5
- Current session lost when auth function call fails
- Impossible to check null session without getSession warning HOT 9
- `getSession` should validate the session with the JWT_SECRET HOT 2
- getAuthenticatorAssuranceLevel() triggers "getSession() could be insecure" warnings HOT 1
- PKCE flow issue with other than supabase `code` query in URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth-js.