Merge pull request #510 from amark/sea

Sea
This commit is contained in:
Mark Nadal 2018-02-27 14:57:11 -08:00 committed by GitHub
commit 273036cad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
sea.js
View File

@ -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')