You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"It's not possible to remove scopes from an existing access token. The only way to reduce consented scopes is to revoke the token and start again."
@wobinb As part of the described steps to replicate above, does the user disconnect from Xero via the connected apps dashboard or does Xero consider the app already authenticated (option is grey and continue with 1 org text present) during the second auth flow?
Scopes in Xero's OAuth 2.0 implementation are additive.
If the first time a connection is authorised scopes A, B and C are requested, they will always be included.
On a second authorisation for the same user, if only scopes A and B are requested, C will also be returned.
The SDK appears to then do a validation check to verify the scopes returned match the ones requested, and the process fails.
To recreate:
The text was updated successfully, but these errors were encountered: