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
Hi @ryang_sei
As this question is related to JIRA Forge, I suggest you to ask your question on the developer community.
The Atlassian Developer Community
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.