When a user enabled integration eg. github, if any strange thing happens, like the user remove the token from Github, there seems to be no way for the forge app to reconnect.
the following will return true.
api.asUser().withProvider('github-auth', 'github-api').hasCredentials()when calling
api.asUser().withProvider('github-auth', 'github-api').requestCredentials();it will end with error:
[NEEDS_AUTHENTICATION_ERR: Authentication Required] {
status: 401,
serviceKey: 'github-auth',
options: { scopes: undefined, isExpectedError: true }
}
Is there any way to aromatically trigger the reconnect?
Thanks