fix: remove the correct auth token response (it changed the name since this was written)

This commit is contained in:
Jacob Overgaard
2024-03-06 12:12:32 +01:00
parent 88482c0748
commit 6832e49709

View File

@@ -78,7 +78,7 @@ export class UmbResourceController extends UmbControllerBase {
console.log('Unauthorized');
// TODO: Do not remove the token here but instead let whatever is listening to the event decide what to do
localStorage.removeItem('tokenResponse');
localStorage.removeItem('umb:userAuthTokenResponse');
// TODO: Show a modal dialog to login either by bubbling an event to UmbAppElement or by showing a modal directly
this.#notificationContext?.peek('warning', {