Skip to content

Instantly share code, notes, and snippets.

@jasonhjohnson
Created February 10, 2016 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonhjohnson/36bb87ac3ed730e6c8b8 to your computer and use it in GitHub Desktop.
Save jasonhjohnson/36bb87ac3ed730e6c8b8 to your computer and use it in GitHub Desktop.
this.lock.show({
container: 'hiw-login-container',
authParams: {
device: 'Web App',
scope: 'openid nickname email offline_access app_metadata', // offline_access needed for refresh tokens
response_type: 'code'
}
},
(err, profile, token) => {
if(err) {
console.log(err);
}
else {
this.authService.login(profile, token);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment