An Oauth2 authorization flow that worked before, stopped working. requestCredentials triggers an auth window, but that simply displays the same macro, not the authorization flow.
This is the code that triggers the flow:
const github = api.asUser().withProvider('github', 'github-api')
if (!await github.hasCredentials()) {
await github.requestCredentials()
}
We implemented several providers that all worked before, they now all simply show confluence with the same macro in the auth window.
For users that succesfully authorized before, hasCredentials returns true and the macro is working and showing the result of an API call.