Fixed so public keys are trusted after registering with existing wallet

This commit is contained in:
emad-salah 2020-08-12 15:22:42 +01:00
parent 34e18820de
commit 4738228d36

View file

@ -861,6 +861,9 @@ module.exports = async (
// Register user after verifying wallet password
const publicKey = await GunDB.register(alias, password)
const trustedKeys = await Storage.get('trustedPKs')
await Storage.setItem('trustedPKs', [...(trustedKeys || []), publicKey])
// Generate Access Token
const token = await auth.generateToken()