5
Support for Retrieving Multiple Users by IDs in supabase-js
Source: supabase/supabase#22173 · opened by @SamuraiT
Description: As of the current version of supabase-js, there is functionality to retrieve a single user by their ID using supabase.auth.admin.getUserById(). However, there are common scenarios where developers need to retrieve multiple users by their IDs in a single operation. This functionality is crucial for efficiency and performance, especially when dealing with batch operations or when the frontend needs to display information about multiple users simultaneously. Current Behavior: To retrieve a user by their ID, we can use: However, there's no built-in method to retrieve multiple users by IDs, which leads to less efficient workarounds, such as multiple sequential or parallel calls to getUserById(), increasing complexity and potential API rate limiting issues. Suggested Feature: Introduce a new method, perhaps named getUsersByIds(), which allows passing an array of user IDs to retrieve multiple user records in a single call. The proposed method signature…
No pledges yet. Be the first to back this.
Comments
Similar requests
[Supabasejs] support modify fetch option in http request
2 votes · 0 comments
Some feature requests
2 votes · 0 comments
Make Apple provider Secret Key optional for native-only Sign in with Apple
6 votes · 0 comments
Allow auth.users to use uuidv7 for ids
1 vote · 0 comments
Expose a method to retrieve a user by email address
6 votes · 0 comments
No comments yet.