alexandrtovmach / react-microsoft-login

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

login popup doesn't closed #6

Closed dorsegal closed 5 years ago

dorsegal commented 5 years ago

The Microsoft login page pops up but after completing the log in the login popup redirect back to the home page instead of closing and running authCallback function

This is how I use it. export class FileSettingsModalComp extends React.PureComponent {

openWithOffice = (err, response) => { // this.handleClickOutside() console.log(err, response) };

render() { return (

);

} }

dorsegal commented 5 years ago

since I am using it as a none root element I had to do new UserAgentApplication(APP_ID, null, () => { }) seperatly

mateomurphy commented 5 years ago

Hi @dorsegal I'm having the same problem, how did you get this to work?

dorsegal commented 5 years ago

@mateomurphy added new UserAgentApplication(APP_ID, null, () => { }) on my parent component

https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/498