authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”
authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”
authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”
Re: authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”
Microsoft does not allow its authentication dialog to open in an I-frame. It works fine in browser but MS Teams is implemented on I-frame, that is why you are getting this error.
Please have a look into [Microsoft Teams authentication flow for tabs](https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/auth-flow-tab) flow.
Here is a ink for [Auth code sample](https://github.com/OfficeDev/microsoft-teams-sample-complete-node/tree/master/src/views/tab-auth)
Please have a look into [Microsoft Teams authentication flow for tabs](https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/auth-flow-tab) flow.
Here is a ink for [Auth code sample](https://github.com/OfficeDev/microsoft-teams-sample-complete-node/tree/master/src/views/tab-auth)