supabase/auth

Create a `supabase.auth.admin.getUserByEmail` function

オープン

#880 opened on 2022/12/11

 (24 件のコメント) (33 件のリアクション) (0 人の担当者)Go (662 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (2,443 個のスター)
PR merge metrics
 (平均マージ 6d 15h) (30d で 29 merged PRs)

説明

Feature request

Is your feature request related to a problem? Please describe.

On server-side, I want to check whether a user with a certain email exists before doing a signup. Since for safety reasons, signups on client side return fake "success" data, even though the user already signed up with this email. (https://github.com/supabase/auth/issues/1517)

Describe the solution you'd like

I would like to have an additional method to not only list all users and get one by Id, but also get one by email. So there is supabase.auth.admin.getUserById(1) but not getUserByEmail('example@example.com')

Describe alternatives you've considered

  • Using listUsers(), pretty inefficient but would do the trick
  • Signing up a user on the client

コントリビューターガイド