This will return valid if the key has the permission:
admin
Single Permission
1
Verify
Verify the key and all permissions that you already know before querying your database.If the response is invalid, you can return early.
2
Query your database
The key is at least valid, so you can query our database to fetch more information.
3
Verify Permissions
The verification response from step 1 includes all permissions attached to the keys and looks something like this:Use the attached permissions and the context loaded from your database to determine if you should proceed handling the request or returning an authorization error.