🤖 Merge PR #46039 Include well_known in matrix-js-sdk LoginPayload by @Georift

This commit is contained in:
Tim 2020-07-13 09:35:32 +08:00 committed by GitHub
parent 20abcc248e
commit 034e05a68e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,10 +243,31 @@ export class IndexedDBStore extends MemoryStore {
}
export interface LoginPayload {
/* The fully-qualified Matrix ID for the account. */
user_id: string;
/* An access token for the account.
* This access token can then be used to authorize other requests. */
access_token: string;
home_server: string;
/* ID of the logged-in device. Will be the same as the
* corresponding parameter in the request, if one was specified. */
device_id: string;
/* The server_name of the homeserver on which the account has been registered.
* @deprecated Clients should extract the server_name from
* ``user_id`` (by splitting at the first colon) if they require
* it. Note also that ``homeserver`` is not spelt this way.
*/
home_server: string;
/**
* Optional client configuration provided by the server. If present,
* clients SHOULD use the provided object to reconfigure themselves,
* optionally validating the URLs within. This object takes the same
* form as the one returned from .well-known autodiscovery.
*/
well_known?: any;
}
/**