Created
February 10, 2016 19:20
-
-
Save jasonhjohnson/36bb87ac3ed730e6c8b8 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
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