forked from Ivasoft/mattermost-mobile
* 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
22 lines
452 B
TypeScript
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;
|
|
}
|