worldcoin / developer-portal

The Worldcoin Developer Portal provides tools to interact with the Worldcoin SDK. Easiest way to get started with World ID.
https://developer.worldcoin.org
MIT License
64 stars 34 forks source link

WID-703 Fix: users can reset arbitrary api keys #516

Closed andy-t-wang closed 7 months ago

andy-t-wang commented 7 months ago

Moved the _reset_key route to use code gen added a check to ensure the user is an owner on the team that has the api_key. Created a new hasura relationship between team -> api_key that is an array relationship. This should exist anyways imo and makes the graphql cleaner.