In the context of element-hq/element-meta#3073, we need Element X to be able to login to a new with these data:
The application (EX) can manage to retrieve a token from MAS, since probably the user is still connected to MAS (they have a valid Element Classic session), or can eventually login again to MAS.
An new Client api could be added to take the secrets or the existing login APIs (Client.login, Client.loginWithOidcCallback) could be updated with a new optional parameter secrets: String?.