Skip to content

Instantly share code, notes, and snippets.

@jasonhjohnson
Created February 10, 2016 19:20
Show Gist options
  • 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