You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using auth.admin.listUsers(), it only returns 50 users, even though in the auth.users there are over 70+ users. This caused a massive fire couple days ago on our production site, when paying customers were faced with errors, since our backend relied on listUsers to find them by their email.
To Reproduce
Here is the code snippet we use to find users by their email:
asyncfunctiongetUserByEmail(email: string){const{data: { users }}=awaitgetSupabaseServiceRole().auth.admin.listUsers();// users.length === 50 here, even though there are over 70+ registered users, as can be seen in the supabase dashboard.if(!users)returnundefined;returnusers.filter((user)=>user.email===email)?.[0];}
Expected behavior
listUsers() is expected to return all registered users, as the documentation says.
Bug report
Describe the bug
When using
auth.admin.listUsers(), it only returns 50 users, even though in the auth.users there are over 70+ users. This caused a massive fire couple days ago on our production site, when paying customers were faced with errors, since our backend relied on listUsers to find them by their email.To Reproduce
Here is the code snippet we use to find users by their email:
Expected behavior
listUsers()is expected to return all registered users, as the documentation says.System information