Commit 4bad8547a1cd0030e6a65fdfc3c878a8eed65ec4
add local rpc api auth func so server doesnt complain
Paul Frazee committed on 3/6/2015, 8:44:00 PMParent: ce17c6881ffa9f8628fe5cfe69e84a8f26faceba
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -19,9 +19,15 @@ | ||
19 | 19 … | var manifest |
20 | 20 … | //if we are in the browser |
21 | 21 … | config = config || {} |
22 | 22 … | 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 … | + }) | |
24 | 30 … | client.keys = keys |
25 | 31 … | |
26 | 32 … | var wsStream |
27 | 33 … | var rpcStream |
Built with git-ssb-web