Skip to content

authentication.getAuthToken() on Teams web client return token after few seconds #2603

Open
@vbatr

Description

Hi,

I am calling microsoftTeams.authentication.getAuthToken() to get Tab SSO token. And everything works fine on Teams web and desktop clients. When the same code is executed in Teams mobile app it is taking few seconds (1 - 30 seconds) to get the token, that is slowing down the app performance a lot

const start = performance.now();
const token = await microsoftTeams.authentication.getAuthToken({ silent: true });
const end = performance.now();
console.log(`Execution time: ${end - start} ms`);

msteams-js library 2.17.0 - 2.30.0

Regards,
Volodymyr B.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions