Another bugfix for alias & PIN authrecall

This commit is contained in:
mhelander 2018-01-29 22:59:31 +02:00
parent d6157113ba
commit 491356382f

2
sea.js
View File

@ -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) {