question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to update browser cache after updating account details?

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-node@1.x.x
  • @azure/msal-react@1.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angular@2.x.x
  • @azure/msal-angularjs@1.x.x

Description

Hi there. I’m providing a form to allow users to update their profile data without leaving the app (SPA). The form posts data via fetch to an API which is turn calls the graph API to update (patch) the user account (eg givenName, surname, and some custom attributes.)

This works great, but after successfully patching the user account, if I refresh the page, the msal library still has the old id claims in cache.

I need to update the browser cache to reflect the updated data. Is there an API I can use to do this?

Source

  • Internal (Microsoft)
  • Customer request

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonnuttercommented, Apr 13, 2021

@badsyntax That is correct syntax.

@nickgmicrosoft @ktsakas Is it expected that ID token claims won’t be updated until the user initiates a new session (i.e. logout or login)?

0reactions
github-actions[bot]commented, May 5, 2021

This issue has been closed due to inactivity. If this has not been resolved please open a new issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Clear Cache for All Major Browsers - Kinsta
And that's it – your Chrome browser cache is now empty. Press the Clear Data button to clear everything completely.
Read more >
Clear cache & cookies - Computer - Google Account Help
On your computer, open Chrome. · At the top right, click More More . · Click More tools and then Clear browsing data....
Read more >
Simple steps to refresh your web browser cache
Simply, On windows Press Ctrl+F5 and On Mac press Option+⌘ Command+E to empty your cache, and then ⌘ Command+R to refresh the page....
Read more >
How to clear browser caches after upgrades
- Open a new, empty browser window and delete temporary internet files/history via the usual menu options. Please keep in mind that some...
Read more >
When hitting F5 just isn't enough! - Refresh your cache
In the same way that your web browser has a cache of recent web pages, your Internet Service Provider (ISP) may be doing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found