Applesauce
    Preparing search index...

    Interface SyncAuthRelay

    The minimal relay interface a SyncAuthHandler needs to authenticate: url, authenticate and auth. This structurally matches applesauce-relay's Relay, the concrete type behind its RelayAuthContext.relay — a real Relay satisfies this interface without any adaptation.

    interface SyncAuthRelay {
        url: string;
        auth(event: NostrEvent): Promise<unknown>;
        authenticate(
            signer: {
                signEvent: (
                    event: Helpers.EventTemplate,
                ) => NostrEvent | Promise<NostrEvent>;
            },
        ): Promise<unknown>;
    }
    Index
    url: string

    The relay's URL