Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Unauthorized client: grant_type is invalid' #4

Open
namjungsoo opened this issue Mar 6, 2020 · 0 comments
Open

'Unauthorized client: grant_type is invalid' #4

namjungsoo opened this issue Mar 6, 2020 · 0 comments

Comments

@namjungsoo
Copy link

namjungsoo commented Mar 6, 2020

Hello,
I got that error from MoneyButtonClient when I login with email and password in Node.js.
Is there any special OAuth app certification process in Apps at moneybutton.com?
I cannot find any grant_type setting method in the Apps.

Here are codes:

var moneybutton = require('@moneybutton/api-client')
var constants = require('./constants')

async function main() {
  var mbclient = new moneybutton.MoneyButtonClient(constants.CLIENT_ID, constants.CLIENT_SECRET)
  await mbclient.logIn('[email protected]', 'MyPassword')
  console.log(await mbclient.whoAmI())
}

main()

and the error message:

node mbclient.js 
[
  {
    id: 'b800b6c0-5f48-11ea-be9a-496277f34fa6',
    status: 400,
    title: 'Bad Request',
    detail: 'Unauthorized client: `grant_type` is invalid'
  }
]

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant