mirror of
https://github.com/amark/gun.git
synced 2025-06-07 06:36:46 +00:00
Something more minor typo fixes to authrecall
This commit is contained in:
parent
fa8882b66a
commit
6fd2c0c1fa
5
sea.js
5
sea.js
@ -538,7 +538,7 @@
|
|||||||
const { epub } = at.put
|
const { epub } = at.put
|
||||||
// Success! we've found our private data!
|
// Success! we've found our private data!
|
||||||
err = null
|
err = null
|
||||||
return { pub, priv, epriv, epub }
|
return { proof, pub, priv, epriv, epub }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
err = 'Failed to decrypt private key!'
|
err = 'Failed to decrypt private key!'
|
||||||
return
|
return
|
||||||
@ -552,6 +552,9 @@
|
|||||||
// now we have AES decrypted the private key,
|
// now we have AES decrypted the private key,
|
||||||
// if we were successful, then that means we're logged in!
|
// if we were successful, then that means we're logged in!
|
||||||
try {
|
try {
|
||||||
|
const { proof } = key
|
||||||
|
delete key.proof
|
||||||
|
|
||||||
await updatestorage(proof, key, pin)(args)
|
await updatestorage(proof, key, pin)(args)
|
||||||
|
|
||||||
const user = Object.assign(key, { at, proof })
|
const user = Object.assign(key, { at, proof })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user