solidgoldpig / mondo-bank

Node wrapper for Mondo API
http://mondo.solidgoldpig.com
The Unlicense
19 stars 1 forks source link

Is this library up-to-date with the API #27

Open JayBizzle opened 8 years ago

JayBizzle commented 8 years ago

Hi,

Been playing around building a small electron app which uses this library, but from what I can see, this library uses the OAuth password grant authentication method which has been deprecated (requires username and password) rather than the authorisation code grant method.

Or am i missing something?

Thanks

solidgoldpig commented 8 years ago

As far as I'm aware nothing has changed apart from adding the oauth via email link.

The password grant still works for me (and is still in the docs) - and I'm going to argue that it shouldn't be deprecated for logging into one's own account with one's own app

If you need to get a token there are 2 passport modules out there:

https://www.npmjs.com/package/passport-mondo https://www.npmjs.com/package/passport-mondo-oauth2

or I just chucked together an auth script here:

https://gist.github.com/solidgoldpig/c66af9cbe30081a1546072b25eb26ac9

JayBizzle commented 8 years ago

Thanks for the reply, i will have another go.

Having said that, i received this email from one of the Mondo devs...

Hi Mark, it sounds like you're trying to use the OAuth password grant. This is deprecated; as you've noted, there are no passwords on Mondo any more. key 

Instead, you probably want to implement the authorisation code grant. To get going quickly though, I'd recommend using the access token that our developer portal gives you smile  Hope this helps!