Variable NDKRelayAuthPoliciesConst
NDKRelay Auth Policies : { 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 > )
Parameters
pool : NDKPool
Optional
debug : Debugger
Returns ( ( relay : NDKRelay ) => Promise < void > )
( relay : NDKRelay ) : Promise < void >
Returns Promise < void >
sign In : ( ( __namedParameters ?: ISignIn ) => ( ( relay : NDKRelay , challenge : string ) => Promise < NDKEvent > ) )
( __namedParameters ?: ISignIn ) : ( ( relay : NDKRelay , challenge : string ) => Promise < NDKEvent > )
Parameters
__namedParameters : ISignIn = {}
Returns ( ( relay : NDKRelay , challenge : string ) => Promise < NDKEvent > )
This policy will disconnect from relays that request authentication.