mirror of https://github.com/vector-im/riot-web
3a025c4b21
* test persistCredentials without a pickle key * test setLoggedIn with pickle key * lint * type error * extract token persisting code into function, persist refresh token * store has_refresh_token too * pass refreshToken from oidcAuthGrant into credentials * rest restore session with pickle key * retreive stored refresh token and add to credentials * extract token decryption into function * remove TODO * very messy poc * comments * prettier * comment pedantry * working refresh without persistence * extract token persistence functions to utils * add sugar * implement TokenRefresher class with persistence * tidying * persist idTokenClaims * persist idTokenClaims * tests * remove unused cde * create token refresher during doSetLoggedIn * tidying * also tidying * update Lifecycle test replaceUsingCreds calls * tidy * test tokenrefresher creation in login flow * test token refresher * Update src/utils/oidc/TokenRefresher.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * use literal value for m.authentication Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * improve comments --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> |
||
---|---|---|
.. | ||
__snapshots__ | ||
beacon | ||
crypto | ||
device | ||
dm | ||
exportUtils | ||
localRoom | ||
location | ||
media | ||
oidc | ||
permalinks | ||
room | ||
validate | ||
AnimationUtils-test.ts | ||
AutoDiscoveryUtils-test.tsx | ||
DMRoomMap-test.ts | ||
DateUtils-test.ts | ||
ErrorUtils-test.ts | ||
EventRenderingUtils-test.ts | ||
EventUtils-test.ts | ||
Feedback-test.ts | ||
FixedRollingArray-test.ts | ||
FormattingUtils-test.tsx | ||
LruCache-test.ts | ||
MegolmExportEncryption-test.ts | ||
MessageDiffUtils-test.tsx | ||
MultiInviter-test.ts | ||
SearchInput-test.ts | ||
SessionLock-test.ts | ||
ShieldUtils-test.ts | ||
Singleflight-test.ts | ||
SnakedObject-test.ts | ||
UrlUtils-test.ts | ||
WidgetUtils-test.ts | ||
arrays-test.ts | ||
colour-test.ts | ||
connection-test.ts | ||
createVoiceMessageContent-test.ts | ||
direct-messages-test.ts | ||
enums-test.ts | ||
export-test.tsx | ||
generate-megolm-test-vectors.py | ||
i18n-helpers-test.ts | ||
iterables-test.ts | ||
leave-behaviour-test.ts | ||
local-room-test.ts | ||
maps-test.ts | ||
membership-test.ts | ||
notifications-test.ts | ||
numbers-test.ts | ||
objects-test.ts | ||
pillify-test.tsx | ||
rooms-test.ts | ||
sets-test.ts | ||
stringOrderField-test.ts | ||
threepids-test.ts | ||
tooltipify-test.tsx |