2016-10-27 08:58:02 +00:00
|
|
|
declare module 'react-native-keychain' {
|
|
|
|
|
|
|
|
export interface UserCredentials {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
}
|
|
|
|
|
2017-01-10 22:07:11 +00:00
|
|
|
export interface SharedWebCredentials {
|
|
|
|
server: string;
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
}
|
|
|
|
|
2016-10-27 08:58:02 +00:00
|
|
|
function setInternetCredentials(
|
|
|
|
server: string,
|
|
|
|
username: string,
|
2017-01-10 22:07:11 +00:00
|
|
|
password: string
|
2016-10-27 08:58:02 +00:00
|
|
|
): Promise<void>;
|
|
|
|
|
|
|
|
function getInternetCredentials(
|
2017-01-10 22:07:11 +00:00
|
|
|
server: string
|
2016-10-27 08:58:02 +00:00
|
|
|
): Promise<UserCredentials>;
|
|
|
|
|
|
|
|
function resetInternetCredentials(
|
2017-01-10 22:07:11 +00:00
|
|
|
server: string
|
2016-10-27 08:58:02 +00:00
|
|
|
): Promise<void>;
|
|
|
|
|
|
|
|
function setGenericPassword(
|
|
|
|
username: string,
|
|
|
|
password: string,
|
2017-01-10 22:07:11 +00:00
|
|
|
service?: string
|
2016-10-27 08:58:02 +00:00
|
|
|
): Promise<void>;
|
|
|
|
|
2017-01-10 22:07:11 +00:00
|
|
|
function getGenericPassword(
|
|
|
|
service?: string
|
|
|
|
): Promise<void>;
|
2016-10-27 08:58:02 +00:00
|
|
|
|
2017-01-10 22:07:11 +00:00
|
|
|
function requestSharedWebCredentials (
|
|
|
|
): Promise<SharedWebCredentials>;
|
2016-10-27 08:58:02 +00:00
|
|
|
|
2017-01-10 22:07:11 +00:00
|
|
|
function setSharedWebCredentials(
|
|
|
|
server: string,
|
|
|
|
username: string,
|
|
|
|
password: string
|
|
|
|
): Promise<void>;
|
2016-10-27 08:58:02 +00:00
|
|
|
|
|
|
|
}
|