I have User authorization for apps enabled in my workspace.
I have added the sql scope to my app. However, when making sql queries to my app, authorization errors ensue:
Error during request to server: : Provided OAuth token does not have required scopes.
I have managed to inspect the JWT that is provided via x-forwarded-access-token and it indeed is missing the "sql" scope.
One thing that could be causing issues is that I'm not sure that I approved the sql scope at the time I first accessed the app. It would be good to be able to reapprove / disapprove the app as a user, both for troubleshooting and security reasons.