basejump icon indicating copy to clipboard operation
basejump copied to clipboard

Recommended way to get account_id throughout project?

Open bryan-vh opened this issue 1 year ago • 1 comments

Hey all, thanks for building this library! I'm currently doing something like this:

  • User signs up with some provider (Google for example)
  • We create a team account for that user using the RPC 'create_account' since personal accounts are disabled
  • Access the account_id throughout other components that need it?

I'm stuck on step 3 right now. I'm currently debating on creating a bespoke provider to pass this account_id where needed to other client components in my application, but wasn't sure if there was a better way to do this. I'm essentially creating an app that has projects (folders) and documents that are owned by each project. Each project should be owned by only one account and each user should only be able to belong to one team account. Would appreciate any guidance on how to move forward!

bryan-vh avatar Jan 30 '24 18:01 bryan-vh