-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
index.js
35 lines (28 loc) · 1.42 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'use strict';
/**
* Expose server and request/response classes.
*/
exports = module.exports = require('./lib/server');
exports.Request = require('./lib/request');
exports.Response = require('./lib/response');
/**
* Export helpers for extension grants.
*/
exports.AbstractGrantType = require('./lib/grant-types/abstract-grant-type');
/**
* Export error classes.
*/
exports.AccessDeniedError = require('./lib/errors/access-denied-error');
exports.InsufficientScopeError = require('./lib/errors/insufficient-scope-error');
exports.InvalidArgumentError = require('./lib/errors/invalid-argument-error');
exports.InvalidClientError = require('./lib/errors/invalid-client-error');
exports.InvalidGrantError = require('./lib/errors/invalid-grant-error');
exports.InvalidRequestError = require('./lib/errors/invalid-request-error');
exports.InvalidScopeError = require('./lib/errors/invalid-scope-error');
exports.InvalidTokenError = require('./lib/errors/invalid-token-error');
exports.OAuthError = require('./lib/errors/oauth-error');
exports.ServerError = require('./lib/errors/server-error');
exports.UnauthorizedClientError = require('./lib/errors/unauthorized-client-error');
exports.UnauthorizedRequestError = require('./lib/errors/unauthorized-request-error');
exports.UnsupportedGrantTypeError = require('./lib/errors/unsupported-grant-type-error');
exports.UnsupportedResponseTypeError = require('./lib/errors/unsupported-response-type-error');