git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Tree: d2b5693b01842e3376dae3c3cf5c579e03e490c4

Files: d2b5693b01842e3376dae3c3cf5c579e03e490c4 / plugins / invite.md

1584 bytesRaw

ssb-server invite plugin

Invite-token system, mainly used for pubs.

create: async

Create a new invite code.

create {n} [{note}, {external}]
create(n[, note, external], cb)

This produces an invite-code which encodes the ssb-server instance's public address, and a keypair seed. The keypair seed is used to generate a keypair, which is then used to authenticate a connection with the ssb-server instance. The ssb-server instance will then grant access to the use call.

accept: async

Use an invite code.

accept {invitecode}
accept(invitecode, cb)

This connects to the server address encoded in the invite-code, then calls use() on the server. It will cause the server to follow the local user.

use: async

Use an invite code created by this ssb-server instance (advanced function).

use --feed {feedid}
use({ feed: }, cb)

This commands the receiving server to follow the given feed.

An invite-code encodes the ssb-server instance's address, and a keypair seed. The keypair seed must be used to generate a keypair, then authenticate a connection with the ssb-server instance, in order to use this function.

Built with git-ssb-web