Login popup issues
Closed this issue · 3 comments
@pchainho Could you please check where that first TypeError: Cannot read property 'profile' of undefined
comes from? My code never tries to read a property named profile
.
Also, I have tested commenting the code that validates the token expiration dates as to assess whether this code introduced the problem and it seems the same problem regarding the profile
property still remains, which in turn cascades down to that CallGeneratemethods
error.
Additionally, is it normal for that first line of the image to indicate "invalid_auth"
?
Regarding the first problem. It seems the openPopup function is returning without having an answer. I don't really know why this happens. I'm taking a look at it now.
@pchainho the problem for this issue is related to the OpenPopup function being only accessible via the messageBus. I've changed the openPopup function back to the IDM as a test and it works normally. But once the messageBus is used we get a timeout and the messageBus responds before the openPopup function answers (it responds by replying the sent message) thus, since the response is incorrect, an error occurs. Should I open an issue with this messageBus problem?
This issue has been fixed in these pull requests:
#189
reTHINK-project/dev-hyperty-toolkit#46