Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verified Permissions: Making an isAuthorizedWithTokenCall per note is too expensive #5

Open
bluprince13 opened this issue Jul 30, 2023 · 1 comment
Labels
blocks_production Issues dependent on external dependencies that block productionising

Comments

@bluprince13
Copy link
Owner

Unfortunately, as of today, there is no way in Verified Permissions to either:

  • Get a list of resources that a users is authorised to do an action on
  • Batch isAuthorized calls into a single request

Currently on the dashboard, we make an isAuthorizedWithTokenCall per note. See notes/server.ts.

This is very inefficient and could get very expensive as number of users or notes gets bigger.

@bluprince13 bluprince13 added the blocks_production Issues dependent on external dependencies that block productionising label Jul 30, 2023
@bluprince13
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks_production Issues dependent on external dependencies that block productionising
Projects
None yet
Development

No branches or pull requests

1 participant