Wait for auth only when putting to user graph

This commit is contained in:
Daniel Lugo 2021-09-17 14:47:23 -04:00
parent 38e374c329
commit a41862c7b0

View file

@ -211,8 +211,11 @@ const handleMsg = async msg => {
})
}
if (msg.type === 'put') {
await waitForAuth()
const [root, ...keys] = msg.path.split('>')
if (root === '$user') {
await waitForAuth()
logger.info('waited for auth ok')
}
/** @type {GunT.GUNNode} */
let node =