FeatureFuel
3

Enhancement: Add API endpoint to query Auth user by email

Source: supabase/supabase#35068 · opened by @jczstudios
Currently there's a gap in functionality when handling user registration flows where a user exists in Auth but fails to get registered in public tables. Current Challenge: • When signUp fails after creating Auth user but before creating public table entries • No direct way to query Auth user by email to recover the user ID • Makes it difficult to retry/recover the public table creation Suggested Solution: 1. Add a secure API endpoint or RPC function to query Auth users by email 2. Return minimal user info (just ID) to maintain security 3. Require appropriate service role authentication This would enable proper error recovery in registration flows while maintaining security. Alternative approaches currently suggested: • Using Postgres functions with security definer • Using database triggers for user management • Pre-checking email existence before signUp A standardized API solution would provide better developer experience for this common …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests