Files
mattermost-mobile/types/api/session.d.ts
Elias Nahum 4c389a49fa Gekidou session expired notification (#6639)
* Fix crash on Android when session expired notification is presented

* react-native-notification patch for schedule fix on android and open local notification on iOS

* Fix android scheduled session notification crash

* patch react-native-navigation to support blur/focus AppState on Android

* remove schedule session expired notification from login entry point

* schedule session expired notification actions

* add session manager

* Handle open session expired notification
2022-09-18 06:57:55 -04:00

22 lines
452 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;
props?: {
os: string;
csrf: string;
};
}
interface LoginActionResponse {
error?: ClientErrorProps | Error | string;
hasTeams?: boolean;
failed: boolean;
time?: number;
}