I want to be able to request the user’s email using ‘email scope’. To teach myself, I am trying to modify the Animal Kingdom tutorial so it uses email scope. However, after enabling email scope, when I run the app, email seems to be undefined. Does anyone know how to make it work?
I made two changes to the Animal Kingdom tutorial. In constants.js I modified this line to include email scope
export const appConfig = new AppConfig(['store_write', 'publish_data','email'])
And in SignedIn.js I am trying to capture the email with
const email = this.userSession.loadUserData().email console.log(email)
See the entire code here
Any help would be appreciated.