You are generating a JSON Web Token (JWT) from the client side by calling the following: gigya.accounts.getJWT(’email,firstName,lastName’); However, the e-mail, firstName, and lastName of the user are NOT returned in the JWT. How can you re-write the API call to get the required claims?
A. gigya.accounts.getJWT({fields:’profile.email,profile.firstName,profile.lastName’});
B. gigya.accounts.getJWT({‘profile.email,profile.firstName,profile.lastName’});
C. gigya.accounts.getJWT({fields:’email,firstName,lastName’});
D. gigya.accounts.getJWT({’email,firstName,lastName’});
Answer:A
You are generating a JSON Web Token (JWT) from the client side by calling the following: gigya.accounts.getJWT(’email,firstName,lastName’); However, the e-mail, firstName, and lastName of the user are NOT returned in the JWT. How can you re-write the API call to get the required claims?
A. gigya.accounts.getJWT({fields:’profile.email,profile.firstName,profile.lastName’}); B. gigya.accounts.getJWT({‘profile.email,profile.firstName,profile.lastName’}); C. gigya.accounts.getJWT({fields:’email,firstName,lastName’}); D. gigya.accounts.getJWT({’email,firstName,lastName’});