Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;})
Add Comment
Please, Sign In to add comment