Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/entries/npm.ts>createInvitationURL

Storage for private, distributed, offline-first applications.
Go to Latest
function createInvitationURL
import { createInvitationURL } from "https://deno.land/x/earthstar@v10.2.0/src/entries/npm.ts";

Creates an invitation URL. Validates the share address, that servers are valid URLs, and the secret against the share address if given.

Parameters

shareAddress: ShareAddress
servers: string[]
optional
secret: string

Returns

Promise<string | ValidationError>