Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elmarti/meteor-accounts-monzo


https://github.com/elmarti/meteor-accounts-monzo

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Meteor Monzo Accounts
`elmarti:accounts-monzo`
This package allows you to SSO (Single Sign on) into Monzo using OAuth2.

### Limitations
At the time of writing, the Monzo API is restricted to users who are explicitly whitelisted [See the blog post](https://monzo.com/blog/2017/05/11/api-update/)

The Monzo API also only supports redirect style login and requires users to click a link in their email.

### Getting started
Like most Meteor OAuth packages, this uses the `ServiceConfiguration` class to manage secure credentials, so get your Monzo ID and secret and do the following on the server side

```JavaScript
Meteor.startup(() => {
ServiceConfiguration.configurations.upsert(
{ service: "monzo" },
{ $set: { clientId: "client", secret: "secret" } }
);
});

```
Now you can call

```JavaScript
//See documentation for the options interface http://docs.meteor.com/api/accounts.html#Meteor-loginWith
Meteor.loginWithMonzo(options)

```

### Further Info
At the time of writing I can't fully vouch for the stability of this package, if you find anything that could be improved, please create an issue or even drop a PR :)