OptionalautoSwitchRelays?: booleanOptionalbunkerSecret?: stringA secret used when connecting to a remote bunker (the secret in a bunker:// URI)
OptionalconnectSecret?: stringA secret used when initiating the connection from the client side (the secret in a nostrconnect:// URI)
Optionalmetadata?: NostrConnectAppMetadataClient metadata sent with connect requests and used for the nostrconnect:// URI
OptionalonAuth?: (url: string) => Promise<void>A method for handling "auth" requests
Optionalpubkey?: stringUsers pubkey
The relays to communicate over
Optionalremote?: stringpubkey of the remote signer application
Optionalsecret?: stringOptionalsigner?: PrivateKeySignerA PrivateKeySigner for this client
Optionaltimeout?: numberMilliseconds to wait for a response before rejecting a request (default 60s, 0 to disable)
Whether to send a
switch_relaysrequest after connecting (default false)