Fixed so public keys are trusted after registering with existing wallet
This commit is contained in:
parent
34e18820de
commit
4738228d36
1 changed files with 3 additions and 0 deletions
|
|
@ -861,6 +861,9 @@ module.exports = async (
|
||||||
// Register user after verifying wallet password
|
// Register user after verifying wallet password
|
||||||
const publicKey = await GunDB.register(alias, password)
|
const publicKey = await GunDB.register(alias, password)
|
||||||
|
|
||||||
|
const trustedKeys = await Storage.get('trustedPKs')
|
||||||
|
await Storage.setItem('trustedPKs', [...(trustedKeys || []), publicKey])
|
||||||
|
|
||||||
// Generate Access Token
|
// Generate Access Token
|
||||||
const token = await auth.generateToken()
|
const token = await auth.generateToken()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue