Forum Discussion
matt131
Oct 07, 2020Copper Contributor
microsoftTeams.authentication.authenticate inconsistent behavior
I'm using the following: microsoftTeams.initialize()
microsoftTeams.authentication.authenticate({
url: redirectUrl,
width: 500,
height: 500,
successCallback: () => {
alert('success';...
Varaprasad-MSFT
Oct 13, 2020Microsoft
matt131 , You need to wait for the initialization to complete before making the authenticate call.
microsoftTeams.initialize(() => { microsoftTeams.authentication.authenticate({ url: redirectUrl, width: 500, height: 500, successCallback: () => { alert('success'; }, failureCallback: () => { alert('failed'); }, }); });