Guest User

Untitled

a guest
Feb 14th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. let a0m = require("./server/auth0/mgmt");
  2. let cli = a0m.getAuthenticationClient("password");
  3.  
  4. const AuthenticationClient = require('auth0').AuthenticationClient;
  5.  
  6. let cli = new AuthenticationClient({
  7. domain: config.auth0config.domain,
  8. clientId: config.auth0config[clientId],
  9. clientSecret: config.secrets[clientSecret]
  10. });
  11.  
  12. let user, err;
  13.  
  14. 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