element-web/src
Richard van der Hoff 433c14e5a9
Log clearer errors when picklekey goes missing (#27)
* tokens.ts: improve documentation

Improve variable naming and documentation on the methods in `tokens.ts`.

* rename restoreFromLocalStorage

Since the session data isn't actually stored in localstorage, this feels like a
misleading name.

* Lifecycle: bail out if picklekey is missing

Currently, if we have an accesstoken which is encrypted with a picklekey, but
the picklekey has gone missing, we carry on with no access token at all. This
is sure to blow up in some way or other later on, but in a rather cryptic way.

Instead, let's bail out early.

(This will produce a "can't restore session" error, but we normally see one of
those anyway because we can't initialise the crypto store.)
2024-09-11 15:13:04 +00:00
..
@types Change license (#13) 2024-09-09 13:57:16 +00:00
accessibility Change license (#13) 2024-09-09 13:57:16 +00:00
actions Change license (#13) 2024-09-09 13:57:16 +00:00
async-components/views/dialogs Change license (#13) 2024-09-09 13:57:16 +00:00
audio Change license (#13) 2024-09-09 13:57:16 +00:00
autocomplete Change license (#13) 2024-09-09 13:57:16 +00:00
components Log clearer errors when picklekey goes missing (#27) 2024-09-11 15:13:04 +00:00
contexts Change license (#13) 2024-09-09 13:57:16 +00:00
customisations Change license (#13) 2024-09-09 13:57:16 +00:00
dispatcher Change license (#13) 2024-09-09 13:57:16 +00:00
editor Change license (#13) 2024-09-09 13:57:16 +00:00
effects Change license (#13) 2024-09-09 13:57:16 +00:00
emojipicker Change license (#13) 2024-09-09 13:57:16 +00:00
events Change license (#13) 2024-09-09 13:57:16 +00:00
hooks Change license (#13) 2024-09-09 13:57:16 +00:00
i18n/strings Remove release announcement of new header (#23) 2024-09-11 09:17:44 +00:00
indexing Change license (#13) 2024-09-09 13:57:16 +00:00
integrations Change license (#13) 2024-09-09 13:57:16 +00:00
mjolnir Change license (#13) 2024-09-09 13:57:16 +00:00
models Change license (#13) 2024-09-09 13:57:16 +00:00
modules Change license (#13) 2024-09-09 13:57:16 +00:00
notifications Change license (#13) 2024-09-09 13:57:16 +00:00
performance Change license (#13) 2024-09-09 13:57:16 +00:00
rageshake Change license (#13) 2024-09-09 13:57:16 +00:00
resizer Change license (#13) 2024-09-09 13:57:16 +00:00
settings Change settings to true by default (#25) 2024-09-11 11:16:52 +00:00
slash-commands Change license (#13) 2024-09-09 13:57:16 +00:00
stores Remove release announcement of new header (#23) 2024-09-11 09:17:44 +00:00
toasts Change license (#13) 2024-09-09 13:57:16 +00:00
usercontent Change license (#13) 2024-09-09 13:57:16 +00:00
utils Log clearer errors when picklekey goes missing (#27) 2024-09-11 15:13:04 +00:00
voice-broadcast Change license (#13) 2024-09-09 13:57:16 +00:00
widgets Change license (#13) 2024-09-09 13:57:16 +00:00
workers Change license (#13) 2024-09-09 13:57:16 +00:00
AddThreepid.ts Change license (#13) 2024-09-09 13:57:16 +00:00
AsyncWrapper.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Avatar.ts Change license (#13) 2024-09-09 13:57:16 +00:00
BasePlatform.ts Change license (#13) 2024-09-09 13:57:16 +00:00
BlurhashEncoder.ts Change license (#13) 2024-09-09 13:57:16 +00:00
boundThreepids.ts Change license (#13) 2024-09-09 13:57:16 +00:00
call-types.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ContentMessages.ts Change license (#13) 2024-09-09 13:57:16 +00:00
createRoom.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DateUtils.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DecryptionFailureTracker.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DeviceListener.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DraftCleaner.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Editing.ts Change license (#13) 2024-09-09 13:57:16 +00:00
email.ts Change license (#13) 2024-09-09 13:57:16 +00:00
HtmlUtils.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
IConfigOptions.ts Change license (#13) 2024-09-09 13:57:16 +00:00
identifiers.ts Change license (#13) 2024-09-09 13:57:16 +00:00
IdentityAuthClient.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
ImageUtils.ts Change license (#13) 2024-09-09 13:57:16 +00:00
index.ts Change license (#13) 2024-09-09 13:57:16 +00:00
KeyBindingsDefaults.ts Change license (#13) 2024-09-09 13:57:16 +00:00
KeyBindingsManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Keyboard.ts Change license (#13) 2024-09-09 13:57:16 +00:00
languageHandler.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
LegacyCallHandler.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Lifecycle.ts Log clearer errors when picklekey goes missing (#27) 2024-09-11 15:13:04 +00:00
linkify-matrix.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Linkify.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Livestream.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Login.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Markdown.ts Change license (#13) 2024-09-09 13:57:16 +00:00
MatrixClientPeg.ts Change license (#13) 2024-09-09 13:57:16 +00:00
MediaDeviceHandler.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Modal.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
NodeAnimator.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Notifier.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PageTypes.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PasswordReset.ts Change license (#13) 2024-09-09 13:57:16 +00:00
phonenumber.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PlatformPeg.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PlaybackEncoder.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PosthogAnalytics.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PosthogTrackers.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Presence.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Registration.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Resend.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Roles.ts Change license (#13) 2024-09-09 13:57:16 +00:00
RoomAliasCache.ts Change license (#13) 2024-09-09 13:57:16 +00:00
RoomInvite.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
RoomNotifs.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Rooms.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ScalarAuthClient.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ScalarMessaging.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SdkConfig.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Searching.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SecurityManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SendHistoryManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
sendTimePerformanceMetrics.ts Change license (#13) 2024-09-09 13:57:16 +00:00
sentry.ts Change license (#13) 2024-09-09 13:57:16 +00:00
shouldHideEvent.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SlashCommands.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
SlidingSyncManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SupportedBrowser.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Terms.ts Change license (#13) 2024-09-09 13:57:16 +00:00
TextForEvent.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
theme.ts Change license (#13) 2024-09-09 13:57:16 +00:00
TimezoneHandler.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Typeguards.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Unread.ts Change license (#13) 2024-09-09 13:57:16 +00:00
UserActivity.ts Change license (#13) 2024-09-09 13:57:16 +00:00
UserAddress.ts Change license (#13) 2024-09-09 13:57:16 +00:00
verification.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Views.ts Change license (#13) 2024-09-09 13:57:16 +00:00
VoipUserMapper.ts Change license (#13) 2024-09-09 13:57:16 +00:00
WhoIsTyping.ts Change license (#13) 2024-09-09 13:57:16 +00:00
WorkerManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00