Created
November 20, 2012 20:42
-
-
Save zdwolfe/4120940 to your computer and use it in GitHub Desktop.
Mongoose returning invalid JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
clientID = '1234'; | |
... | |
models.Client.find({clientID: clientID}, function(err, client) { | |
console.log('ClientPasswordStrategy client = ' + client); | |
console.log('client.clientID = ' + client.clientID); | |
} | |
Output: | |
ClientPasswordStrategy client = { name: 'CollabClient', | |
secret: 'CollabClientSecret', | |
clientID: 'CollabClientID', | |
redirectURI: 'http://localhost:3000/auth/callback', | |
_id: 50abe51812f5a9e37a000001, | |
__v: 0 } | |
client.clientID = undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output:
ClientPasswordStrategy client = { name: 'CollabClient',
secret: 'CollabClientSecret',
clientID: 'CollabClientID',
redirectURI: 'http://localhost:3000/auth/callback',
_id: 50abe51812f5a9e37a000001,
__v: 0 }
client.clientID = undefined