Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Query {
- _mongooseOptions: {},
- mongooseCollection:
- NativeCollection {
- collection: Collection { s: [Object] },
- opts:
- { bufferCommands: true,
- capped: false,
- '$wasForceClosed': undefined },
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- options: null,
- otherDbs: [],
- relatedDbs: {},
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: [Object],
- client: [Object],
- name: 'api',
- '$initialConnection': [Object],
- _events: [Object],
- _eventsCount: 1,
- db: [Object] },
- queue: [],
- buffer: false,
- emitter:
- EventEmitter {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined } },
- model:
- { [Function: model]
- hooks: Kareem { _pres: [Object], _posts: [Object] },
- base:
- Mongoose {
- connections: [Array],
- models: [Object],
- modelSchemas: [Object],
- options: [Object],
- _pluralize: [Function: pluralize],
- plugins: [Array] },
- modelName: 'access_token',
- model: [Function: model],
- db:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- options: null,
- otherDbs: [],
- relatedDbs: {},
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: [Object],
- client: [Object],
- name: 'api',
- '$initialConnection': [Object],
- _events: [Object],
- _eventsCount: 1,
- db: [Object] },
- discriminators: undefined,
- '$appliedMethods': true,
- '$appliedHooks': true,
- schema:
- Schema {
- obj: [Object],
- paths: [Object],
- aliases: {},
- subpaths: {},
- virtuals: [Object],
- singleNestedPaths: {},
- nested: {},
- inherits: {},
- callQueue: [],
- _indexes: [],
- methods: {},
- methodOptions: {},
- statics: {},
- tree: [Object],
- query: {},
- childSchemas: [],
- plugins: [Array],
- s: [Object],
- _userProvidedOptions: {},
- options: [Object],
- '$globalPluginsApplied': true,
- _requiredpaths: [] },
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- Query: { [Function] base: [Object] },
- '$__insertMany': [Function],
- '$init': Promise { [Object], catch: [Function] } },
- schema:
- Schema {
- obj: { accessToken: [Object], expires: [Object], clientId: [Object] },
- paths:
- { accessToken: [Object],
- expires: [Object],
- clientId: [Object],
- _id: [Object],
- __v: [Object] },
- aliases: {},
- subpaths: {},
- virtuals: { id: [Object] },
- singleNestedPaths: {},
- nested: {},
- inherits: {},
- callQueue: [],
- _indexes: [],
- methods: {},
- methodOptions: {},
- statics: {},
- tree:
- { accessToken: [Object],
- expires: [Object],
- clientId: [Object],
- _id: [Object],
- __v: [Function: Number],
- id: [Object] },
- query: {},
- childSchemas: [],
- plugins: [ [Object], [Object], [Object], [Object], [Object] ],
- s: { hooks: [Object] },
- _userProvidedOptions: {},
- options:
- { typeKey: 'type',
- id: true,
- noVirtualId: false,
- _id: true,
- noId: false,
- validateBeforeSave: true,
- read: null,
- shardKey: null,
- autoIndex: null,
- minimize: true,
- discriminatorKey: '__t',
- versionKey: '__v',
- capped: false,
- bufferCommands: true,
- strict: true,
- pluralization: true },
- '$globalPluginsApplied': true,
- _requiredpaths: [] },
- op: 'findOne',
- options: {},
- _conditions: { accessToken: '3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4a' },
- _fields: undefined,
- _update: undefined,
- _path: undefined,
- _distinct: undefined,
- _collection:
- NodeCollection {
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- collectionName: 'access_tokens' },
- _traceFunction: undefined }
- 1 3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4d
- Query {
- _mongooseOptions: {},
- mongooseCollection:
- NativeCollection {
- collection: Collection { s: [Object] },
- opts:
- { bufferCommands: true,
- capped: false,
- '$wasForceClosed': undefined },
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- options: null,
- otherDbs: [],
- relatedDbs: {},
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: [Object],
- client: [Object],
- name: 'api',
- '$initialConnection': [Object],
- _events: [Object],
- _eventsCount: 1,
- db: [Object] },
- queue: [],
- buffer: false,
- emitter:
- EventEmitter {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined } },
- model:
- { [Function: model]
- hooks: Kareem { _pres: [Object], _posts: [Object] },
- base:
- Mongoose {
- connections: [Array],
- models: [Object],
- modelSchemas: [Object],
- options: [Object],
- _pluralize: [Function: pluralize],
- plugins: [Array] },
- modelName: 'access_token',
- model: [Function: model],
- db:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- options: null,
- otherDbs: [],
- relatedDbs: {},
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: [Object],
- client: [Object],
- name: 'api',
- '$initialConnection': [Object],
- _events: [Object],
- _eventsCount: 1,
- db: [Object] },
- discriminators: undefined,
- '$appliedMethods': true,
- '$appliedHooks': true,
- schema:
- Schema {
- obj: [Object],
- paths: [Object],
- aliases: {},
- subpaths: {},
- virtuals: [Object],
- singleNestedPaths: {},
- nested: {},
- inherits: {},
- callQueue: [],
- _indexes: [],
- methods: {},
- methodOptions: {},
- statics: {},
- tree: [Object],
- query: {},
- childSchemas: [],
- plugins: [Array],
- s: [Object],
- _userProvidedOptions: {},
- options: [Object],
- '$globalPluginsApplied': true,
- _requiredpaths: [] },
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- Query: { [Function] base: [Object] },
- '$__insertMany': [Function],
- '$init': Promise { [Object], catch: [Function] } },
- schema:
- Schema {
- obj: { accessToken: [Object], expires: [Object], clientId: [Object] },
- paths:
- { accessToken: [Object],
- expires: [Object],
- clientId: [Object],
- _id: [Object],
- __v: [Object] },
- aliases: {},
- subpaths: {},
- virtuals: { id: [Object] },
- singleNestedPaths: {},
- nested: {},
- inherits: {},
- callQueue: [],
- _indexes: [],
- methods: {},
- methodOptions: {},
- statics: {},
- tree:
- { accessToken: [Object],
- expires: [Object],
- clientId: [Object],
- _id: [Object],
- __v: [Function: Number],
- id: [Object] },
- query: {},
- childSchemas: [],
- plugins: [ [Object], [Object], [Object], [Object], [Object] ],
- s: { hooks: [Object] },
- _userProvidedOptions: {},
- options:
- { typeKey: 'type',
- id: true,
- noVirtualId: false,
- _id: true,
- noId: false,
- validateBeforeSave: true,
- read: null,
- shardKey: null,
- autoIndex: null,
- minimize: true,
- discriminatorKey: '__t',
- versionKey: '__v',
- capped: false,
- bufferCommands: true,
- strict: true,
- pluralization: true },
- '$globalPluginsApplied': true,
- _requiredpaths: [] },
- op: 'findOne',
- options: {},
- _conditions: { accessToken: '3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4d' },
- _fields: undefined,
- _update: undefined,
- _path: undefined,
- _distinct: undefined,
- _collection:
- NodeCollection {
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'access_tokens',
- collectionName: 'access_tokens',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- collectionName: 'access_tokens' },
- _traceFunction: undefined }
- OAuth2Error: The access token provided is invalid.
- at OAuth2Error (/home/vagrant/api/node_modules/node-oauth2-server/lib/error.js:30:12)
- at /home/vagrant/api/node_modules/node-oauth2-server/lib/authorise.js:114:19
- at /home/vagrant/api/node_modules/mongoose/lib/model.js:4233:16
- at model.Query.Query._completeOne (/home/vagrant/api/node_modules/mongoose/lib/query.js:1513:12)
- at Immediate.Query.base.findOne.call (/home/vagrant/api/node_modules/mongoose/lib/query.js:1569:10)
- at Immediate.<anonymous> (/home/vagrant/api/node_modules/mquery/lib/utils.js:119:16)
- at runCallback (timers.js:800:20)
- at tryOnImmediate (timers.js:762:5)
- at processImmediate [as _immediateCallback] (timers.js:733:5)
Add Comment
Please, Sign In to add comment