I have an app that uses a RestApi resource with OAuth2 Auth configured. The OAuth2 flow & callback is all working fine (I can use the resource in apps and make authorized requests) but I am trying to get the auth verification endpoint configured.
Right now there is an message being returned when I try to test the endpoint:
Retool will require the auth flow due to error Cannot access 'res' before initialization
See attached screenshot.
The endpoint itself works fine (its an Auth0 hosted openid /userinfo endpoint) and Retool is retrieving tokens fine (apps can use the resources), but its simply the auth verification endpoint that seems to be hitting an error serverside inside of Retool. I want to configure this verification endpoint so that new users opening the app get prompted to authorise.
Anyone able to help me our to uncover what the root cause is here?