Files: 3ac3f63409b2f6e177034de5ad8483d25749626a / plugins / no-auth.js
355 bytesRaw
1 | |
2 | exports.name = 'no-auth' |
3 | exports.version = '1.0.0' |
4 | exports.init = function (ssk, config) { |
5 | var Noauth = require('multiserver/plugins/noauth') |
6 | |
7 | ssk.multiserver.transform({ |
8 | name: 'noauth', |
9 | create: function () { |
10 | return Noauth({ |
11 | keys: { |
12 | publicKey: Buffer.from(config.keys.public, 'base64') |
13 | } |
14 | }) |
15 | } |
16 | }) |
17 | } |
18 |
Built with git-ssb-web