Fix authentication typo

This commit is contained in:
emad-salah 2021-11-29 14:21:31 +01:00
parent 3d377e6c69
commit 2b2dba6073
2 changed files with 2 additions and 2 deletions

View file

@ -260,7 +260,6 @@ const API = require('../contact-api/index')
const gun = Gun({ const gun = Gun({
axe: false, axe: false,
multicast: false,
peers: Config.PEERS peers: Config.PEERS
}) })
@ -482,5 +481,6 @@ module.exports = {
getUser, getUser,
mySEA, mySEA,
getMySecret, getMySecret,
logoff,
$$__SHOCKWALLET__ENCRYPTED__ $$__SHOCKWALLET__ENCRYPTED__
} }

View file

@ -519,7 +519,7 @@ module.exports = async (
await recreateLnServices() await recreateLnServices()
if (GunDB.isAuthenticated()) { if (GunDB.isAuthenticated()) {
GunDB.instantiateGun() GunDB.logoff()
} }
const publicKey = await GunDB.authenticate(alias, password) const publicKey = await GunDB.authenticate(alias, password)