Created
November 14, 2017 03:23
-
-
Save dclarke-modus/b0762eaf7085b15f84093bab146b04eb to your computer and use it in GitHub Desktop.
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
async getClient (clientId, clientSecret, callback) { | |
let client = await this.mongoClient.collection('client').findOne({"client" : clientId, "client_secret" : clientSecret}, {"_id" : 1}); | |
let scopes = await this.mongoClient.collection('scope').find({"client_id" : client._id }).toArray(); | |
console.log(scopes); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment