Created
January 31, 2018 20:32
-
-
Save lukebergen/944765f4d096f0c5de2e73de6ac6c479 to your computer and use it in GitHub Desktop.
This file contains 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
let a0m = require("./server/auth0/mgmt"); | |
let cli = a0m.getAuthenticationClient("password"); | |
const AuthenticationClient = require('auth0').AuthenticationClient; | |
let cli = new AuthenticationClient({ | |
domain: config.auth0config.domain, | |
clientId: config.auth0config[clientId], | |
clientSecret: config.secrets[clientSecret] | |
}); | |
let user, err; | |
cli.oauth.passwordGrant({username: <my email>, password: <my password>, realm: "MMID"}, function(e,u) {err = e; user = u;}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment