export icredentials

This commit is contained in:
Gerzon Z 2022-02-25 11:31:28 -04:00
parent 6acd5d1501
commit 3aed0513bc
3 changed files with 17 additions and 17 deletions

View File

@ -0,0 +1,15 @@
export interface ICredentials {
user?: string;
password?: string;
username?: string;
ldapPass?: string;
ldap?: boolean;
ldapOptions?: object;
crowdPassword?: string;
crowd?: boolean;
code?: string;
totp?: {
login: ICredentials;
code: string;
};
}

View File

@ -24,6 +24,7 @@ export * from './IServerHistory';
export * from './IRocketChat'; export * from './IRocketChat';
export * from './ICertificate'; export * from './ICertificate';
export * from './IUrl'; export * from './IUrl';
export * from './ICredentials';
export interface IBaseScreen<T extends Record<string, object | undefined>, S extends string> { export interface IBaseScreen<T extends Record<string, object | undefined>, S extends string> {
navigation: StackNavigationProp<T, S>; navigation: StackNavigationProp<T, S>;

View File

@ -10,23 +10,7 @@ import { loginRequest, setUser } from '../../../actions/login';
import sdk from './sdk'; import sdk from './sdk';
import I18n from '../../../i18n'; import I18n from '../../../i18n';
import { MIN_ROCKETCHAT_VERSION } from '../rocketchat'; import { MIN_ROCKETCHAT_VERSION } from '../rocketchat';
import { ILoggedUser } from '../../../definitions'; import { ICredentials, ILoggedUser } from '../../../definitions';
interface ICredentials {
user?: string;
password?: string;
username?: string;
ldapPass?: string;
ldap?: boolean;
ldapOptions?: object;
crowdPassword?: string;
crowd?: boolean;
code?: string;
totp?: {
login: ICredentials;
code: string;
};
}
async function login(credentials: ICredentials, isFromWebView = false) { async function login(credentials: ICredentials, isFromWebView = false) {
// RC 0.64.0 // RC 0.64.0