From 2b2dba60735485d0ad3e48c09d428ec98322db7b Mon Sep 17 00:00:00 2001 From: emad-salah Date: Mon, 29 Nov 2021 14:21:31 +0100 Subject: [PATCH] Fix authentication typo --- services/gunDB/Mediator/index.js | 2 +- src/routes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index c6ea9731..1402cb39 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -260,7 +260,6 @@ const API = require('../contact-api/index') const gun = Gun({ axe: false, - multicast: false, peers: Config.PEERS }) @@ -482,5 +481,6 @@ module.exports = { getUser, mySEA, getMySecret, + logoff, $$__SHOCKWALLET__ENCRYPTED__ } diff --git a/src/routes.js b/src/routes.js index 260ede51..e53c3356 100644 --- a/src/routes.js +++ b/src/routes.js @@ -519,7 +519,7 @@ module.exports = async ( await recreateLnServices() if (GunDB.isAuthenticated()) { - GunDB.instantiateGun() + GunDB.logoff() } const publicKey = await GunDB.authenticate(alias, password)