mattermost-mobile/types/api/session.d.ts
Elias Nahum c452ef8038
[Gekidou] Login entry point (#5568)
* Login entry point

* feedback review

* sort imports

* Fix model relations

* Handle when no current team or current channel has been selected

* Fix MFA unit test

* update prepareCommonSystemValues arguments
2021-07-26 12:03:43 +04:00

17 lines
381 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
interface Session {
id: string;
create_at: number;
device_id?: string;
expires_at: number;
user_id: string;
}
interface LoginActionResponse {
error?: ClientErrorProps | string;
hasTeams?: boolean;
failed: boolean;
time?: number;
}