aadTokenProviderFactory getToken gives the previous user's token on Firefox #10030
Open
1 of 9 tasks
Labels
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
On Firefox, and Firefox only (Chrome, Edge etc do not have this issue), when switching accounts on SharePoint Online, the token provided by the following code:
stays the same.
If I browse SharePoint with user A, then switch to user B, the token retrieved from the code above will be user A's token.
I made a basic Webpart project with a console.log() of the token at: https://github.com/Bux42/SPFX_Aad_Token_Bug for ease of reproduction. Here is where I get and log the token.
Steps to reproduce
Expected behavior
Using Firefox, after switching from account A to account B on SharePoint, the code above will give user B's token
The text was updated successfully, but these errors were encountered: