Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmarti/meteor-accounts-monzo
https://github.com/elmarti/meteor-accounts-monzo
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elmarti/meteor-accounts-monzo
- Owner: elmarti
- Created: 2017-12-19T11:28:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T23:49:46.000Z (about 7 years ago)
- Last Synced: 2024-11-02T20:42:19.328Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :)