Microsoft-authentication-library-for-js: Delete cache on logOut msal-node electronTestApp

Created on 10 Dec 2020  路  4Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

I'm working on your sample ElectronTestApp.

It seems like removeAccount doesn't delete the account. is there anyway to delete the cache and be redirected to the login page?

this.clientApplication
          .getTokenCache()
           .removeAccount(this.account);

Library

Framework

  • [x] electron
bug msal-node question samples

All 4 comments

Hey @Ladvace, my first guess is there's a problem with the sample's cache plugin, let me take a look and I'll get back to you!

This issue has not seen activity in 14 days. It will be closed in 7 days if it remains stale.

Turns out there was a bug in the AuthProvider class where the loginSilent method returned the cached account but didn't set it under this.account, so by the time logout was clicked, this.account was null and removeAccount wasn't being called. Thanks for catching this bug @Ladvace. Should work fine after merging the fix in #2830.

Thanks to you for fixing that

Was this page helpful?
0 / 5 - 0 ratings