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
..
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 15:13:04 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 09:17:44 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 11:16:52 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 09:17:44 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 15:13:04 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-11 15:13:04 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00
2024-09-09 13:57:16 +00:00