From 491356382f7e6c6655dce83c8940b00459a02596 Mon Sep 17 00:00:00 2001 From: mhelander Date: Mon, 29 Jan 2018 22:59:31 +0200 Subject: [PATCH] Another bugfix for alias & PIN authrecall --- sea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea.js b/sea.js index cda2584d..722bf368 100644 --- a/sea.js +++ b/sea.js @@ -513,7 +513,7 @@ : await checkRememberData(await readAndDecrypt(await seaIndexedDb.get(alias, 'auth'), pub, pin)) } // got pub, try auth with pin & alias :: or unwrap Storage data... - const args = pin ? { pin, alias } : await readStorageData() + const args = await readStorageData(pin && { pin, alias }) const { proof } = args || {} if (!proof) {