git ssb

2+

Dominic / ssb-client



Commit 4bad8547a1cd0030e6a65fdfc3c878a8eed65ec4

add local rpc api auth func so server doesnt complain

Paul Frazee committed on 3/6/2015, 8:44:00 PM
Parent: ce17c6881ffa9f8628fe5cfe69e84a8f26faceba

Files changed

index.jschanged
index.jsView
@@ -19,9 +19,15 @@
1919 var manifest
2020 //if we are in the browser
2121 config = config || {}
2222 config.host = config.host || 'localhost'
23- var client = muxrpc(loadManf(config), false, serialize)()
23 +
24 + var client = muxrpc(loadManf(config), { auth: 'async' }, serialize)({
25 + auth: function (req, cb) {
26 + // just pass-through. you're authed!
27 + cb()
28 + }
29 + })
2430 client.keys = keys
2531
2632 var wsStream
2733 var rpcStream

Built with git-ssb-web