Hello,
I am trying to use Single Sign-On with my Sky addin, but when I call client.getUserIdentityToken() I cannot get the Promise to resolve.
My code is as follows:
var client = new window.BBSkyAddinClient.AddinClient({…}) <-- This all works
client.getUserIdentityToken( ).then((token) => {
var userIdentityToken = token;
console.log(token)
})
It never reaches the inside of .then( ). When I log the client itself, I see that the client object populates authTokenRequests and changes lastAuthTokenRequestId to 1, but I cannot get the token itself.
Any ideas why?
Thanks,
Kevin