* Tidy up token refresh code This was a bit odd where the function to create a refresher sometimes created a refresher and sometimes just returned null, including if the init failed, in which case you would just end up with no token refresher. Pairs with https://github.com/matrix-org/matrix-js-sdk/pull/5106 but doesn't depend on either way. * Remove deviceId property in favour of superclass one * Fix tests * Fix argument order in super call redirect URI & device ID were swapped. It appears that gthe OIDS client only actually sends the redirect URI when refreshing a token, so we will have been sending a device ID for that when refreshing. I think this is safe to fix since this is only when refreshing so it already would not have matched what was passed at login time. * Pass client ID into createOidcTokenRefresher
44 KiB
44 KiB