authmaker-verify
Version:
AccessToken verification for Authmaker
15 lines (11 loc) • 1.28 kB
Markdown
[](https://travis-ci.org/Authmaker/authmaker-verify)
[](https://codeclimate.com/github/Authmaker/authmaker-verify)
[](https://www.npmjs.com/package/authmaker-verify)
[](https://david-dm.org/Authmaker/authmaker-verify)
[](https://www.npmjs.com/package/authmaker-verify)
#### mongoRateLimited: function(access_token, tag, defaultScope)
#### mongo: function(access_token, requiredScope)
#### connectMongo: function(nconf)
#### rateLimited: function()
#### auditCount: function(access_token, tag, since)
Use this function to get the count of a particular tag in the audit trail. If you pass the optional `since` parameter it will limit the count to number of audit trail entries since that time. Whatever is passed with the `since` parameter will be passed to `moment(since)` to build a date object directly so you can use any of the [valid parse objects for moment](http://momentjs.com/docs/#/parsing/)