alexandrtovmach / react-microsoft-login

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

authCallback not being called #50

Closed pablolopezq closed 3 years ago

pablolopezq commented 4 years ago
const authHandler = (err, data) => {
     localStorage.setItem('x', 1)
}

<MicrosoftLogin 
     debug={true} 
     redirectUri="http://localhost:3000/dash" 
     tenantUrl={TENANTURL} clientID={CLIENTID}" 
     authCallback={authHandler} 
     forceRedirectStrategy={true} />

Variable on localStorage is not being set, callback is not being called. What could be wrong?

alexandrtovmach commented 4 years ago

@pablolopezq Thanks for reporting

Could you make sure that's not called with console.log or another debug tool?

alexandrtovmach commented 3 years ago

Closed as staled