fix(desktop,cli): match the new interactive auth-callback signature

The relay-auth fix added an `interactive` flag to
RelayAuthenticator.signWithAllLoggedInUsers; update the desktop and cli
implementers (which don't prompt) to the 3-arg lambda.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vitor Pamplona
2026-07-13 14:14:30 -04:00
co-authored by Claude Opus 4.8
parent 04388adc02
commit 95ab9e6528
2 changed files with 2 additions and 2 deletions
@@ -258,7 +258,7 @@ class Context(
private val relayAuth: RelayAuthenticator =
RelayAuthenticator(
client = client,
signWithAllLoggedInUsers = { _, template ->
signWithAllLoggedInUsers = { _, template, _ ->
if (signer is NostrSignerInternal) {
runCatching { listOf(signer.sign(template)) }.getOrElse { emptyList() }
} else {
@@ -105,7 +105,7 @@ class DesktopAuthCoordinator(
RelayAuthenticator(
client = relayManager.client,
scope = scope,
signWithAllLoggedInUsers = { relayUrl, template ->
signWithAllLoggedInUsers = { relayUrl, template, _ ->
val signed = signWithPolicy(account, relayUrl, template, policy)
signed?.let { listOf(it) } ?: emptyList()
},