I'm trying to connect WorkflowMax to my application and it's throwing the error "You don't have access to connect any WorkflowMax accounts".
Here's the server side code (NodeJS):
const oauth2 = simpleOauthModule.create({
client: {
id: 'client id',
secret: 'secret key',
},
auth: {
tokenHost: 'https://identity.xero.com',
authorizeHost: 'https://login.xero.com',
tokenPath: '/connect/token',
authorizePath: '/identity/connect/authorize',
},
options: {
authorizationMethod: 'body',
}
});
const authorizationUri = oauth2.authorizationCode.authorizeURL({
redirect_uri: 'example.com/_oauth2',
state: Random.id(),
scope: 'openid profile workflowmax'
});
The user account I'm using does have the "Authorise 3rd Party Full Access" permission ticked in the WorkflowMax staff settings. I've waited about a day for the permissions to update and tried it on other accounts.
Is there anything else I need to do to allow WorkflowMax Oauth 2?
Here's an image of what it's throwing: