From 0faebec6314b6698eab9b4152334c530d49b7853 Mon Sep 17 00:00:00 2001 From: Robert Heessels Date: Tue, 27 Feb 2018 10:23:58 +0100 Subject: [PATCH] Fixed recall issues. --- sea.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sea.js b/sea.js index cfa11cea..a4b8c832 100644 --- a/sea.js +++ b/sea.js @@ -759,6 +759,7 @@ // TODO: BUG! `SEA` needs to be USED! const Gun = (typeof window !== 'undefined' ? window : global).Gun || USE('gun/gun') const authsettings = USE('./settings') + const SEA = USE('./sea'); const { scope: seaIndexedDb } = USE('./indexed') // This updates sessionStorage & IndexedDB to persist authenticated "session" const updateStorage = (proof, key, pin) => async (props) => { @@ -878,6 +879,8 @@ const queryGunAliases = USE('./query') const parseProps = USE('./parse') const updateStorage = USE('./update') + const SEA = USE('./sea') + const finalizeLogin = USE('./login') // This internal func recalls persisted User authentication if so configured const authRecall = async (gunRoot, authprops) => { @@ -1035,6 +1038,7 @@ const SEA = USE('./sea') const authRecall = USE('./recall') + const authsettings = USE('./settings') const authenticate = USE('./authenticate') const finalizeLogin = USE('./login') const authLeave = USE('./leave')