From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/utils/keychain.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/utils/keychain.ts') diff --git a/app/utils/keychain.ts b/app/utils/keychain.ts index 34774bb..86fae6f 100644 --- a/app/utils/keychain.ts +++ b/app/utils/keychain.ts @@ -1,4 +1,4 @@ -import * as ReactNativeKeychain from "react-native-keychain" +import * as ReactNativeKeychain from 'react-native-keychain' /** * Saves some credentials securely. @@ -7,7 +7,11 @@ import * as ReactNativeKeychain from "react-native-keychain" * @param password The password * @param server The server these creds are for. */ -export async function save(username: string, password: string, server?: string) { +export async function save( + username: string, + password: string, + server?: string, +) { if (server) { await ReactNativeKeychain.setInternetCredentials(server, username, password) return true @@ -31,7 +35,7 @@ export async function load(server?: string) { } } else { const creds = await ReactNativeKeychain.getGenericPassword() - if (typeof creds === "object") { + if (typeof creds === 'object') { return { username: creds.username, password: creds.password, -- cgit v1.2.3