My current code:
lock.on('authenticated', (authResult) => {
lock.getUserInfo(authResult.accessToken, (error, profileResult) => {
if (error) {
console.log(error);
return;
}
console.log(profileResult);
console.log(authResult.accessToken);
// Update DOM
});
});
As stated in title, this callback just does not return any data, does not break either.
I know my lock variable is set correctly because other callback functions are working as intended. For ex signup success
.
similar issue which is unresolved here: