Variable NDKRelayAuthPoliciesConst

NDKRelayAuthPolicies: {
    disconnect: ((pool: NDKPool, debug?: Debugger) => ((relay: NDKRelay) => Promise<void>));
    signIn: ((__namedParameters?: ISignIn) => ((relay: NDKRelay, challenge: string) => Promise<NDKEvent>));
} = ...

Type declaration

  • disconnect: ((pool: NDKPool, debug?: Debugger) => ((relay: NDKRelay) => Promise<void>))
      • (pool: NDKPool, debug?: Debugger): ((relay: NDKRelay) => Promise<void>)
      • This policy will disconnect from relays that request authentication.


        • pool: NDKPool
        • Optional debug: Debugger

        Returns ((relay: NDKRelay) => Promise<void>)

          • (relay: NDKRelay): Promise<void>
          • Parameters

            Returns Promise<void>

  • signIn: ((__namedParameters?: ISignIn) => ((relay: NDKRelay, challenge: string) => Promise<NDKEvent>))
      • (__namedParameters?: ISignIn): ((relay: NDKRelay, challenge: string) => Promise<NDKEvent>)
      • Uses the signer to sign an event and then authenticate with the relay. If no signer is provided the NDK signer will be used. If none is not available it will wait for one to be ready.


        • __namedParameters: ISignIn = {}

        Returns ((relay: NDKRelay, challenge: string) => Promise<NDKEvent>)

Generated using TypeDoc