MCPcopy Index your code
hub / github.com/oauthjs/node-oauth2-server / OAuth2Server

Function OAuth2Server

lib/server.js:17–25  ·  view source on GitHub ↗

* Constructor.

(options)

Source from the content-addressed store, hash-verified

15 */
16
17function OAuth2Server(options) {
18 options = options || {};
19
20 if (!options.model) {
21 throw new InvalidArgumentError('Missing parameter: `model`');
22 }
23
24 this.options = options;
25}
26
27/**
28 * Authenticate a token.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected