I started this project due to the lacking of search functionality within the mongodb atlas admin, too often was I asked to help with a user confirmation only to have to click "load more" endlessy until I found that users email. So I built this, which will enable you to sync your pending users into a supabase db instance.
-
Fork this repo into your own github
-
Create a mongo db api key;
-
If you have an atlas project already setup you will need to get your groupid and app id. You can get that information here or from your projects url.
-
Setup a supabase instance a. Create a table called PendingUsers b. Add the columns, email - Text, realmId - Text and confirmed - Boolean. c. Add a user to your supabase instance d. Copy your supabase url and public anon key into the .env file
-
Run
npm install
and thennpm run dev
to start the local server -
Login to your project with the user you added to supabase.
-
Click "sync realm users" this may take a while on the first run depending on how many users you have. If it times out click it again.
-
Your users should now be loaded into your supabase instance and you can query this and run confirmations and deletions on users in your pending users list.
Note: you should run the sync users from time to time to ensure you have the most up to date data.