alexandrtovmach / react-microsoft-login

Microsoft services authorization with React.
https://alexandrtovmach.github.io/react-microsoft-login
MIT License
80 stars 38 forks source link

Cannot read property 'accessToken' of undefined #63

Closed yogeshchauhan closed 3 years ago

yogeshchauhan commented 4 years ago

Steps to reproduce:

Actual result: Cannot read property 'accessToken' of undefined

Expected behaviour: After login, I want the Microsoft user data. In the second time, I am able to get the data as the cookie has been generated successfully on my browser.

Attachments: Screenshot 2020-09-21 at 3 17 20 PM

Screenshot 2020-09-21 at 3 18 07 PM

Additional context: The Auth is secured by OTP settings. I am using 1.10.1 version of the library.

vinceplayer commented 3 years ago

any news?

alexandrtovmach commented 3 years ago

I can't reproduce the issue. Tested on:

But I think I found where is the issue. Could you try a new version 1.10.2?

alexandrtovmach commented 3 years ago

@vinceplayer @yogeshchauhan Should be fixed with the latest versions. Feel free to re-open or create a new issue if it's still reproducing.