mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
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:
co-authored by
Claude Opus 4.8
parent
04388adc02
commit
95ab9e6528
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user