khatru: OnAuth hook.

This commit is contained in:
fiatjaf
2026-06-20 20:25:09 -03:00
parent ab19d4fc8e
commit 7d16aa1168
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -85,6 +85,7 @@ type Relay struct {
RejectConnection func(r *http.Request) bool
OnConnect func(ctx context.Context)
OnDisconnect func(ctx context.Context)
OnAuth func(ctx context.Context, pubkey nostr.PubKey)
OnListenerAdded func(ws *WebSocket, ssid int, id string, filter nostr.Filter)
OnListenerRemoved func(ws *WebSocket, ssid int, id string, filter nostr.Filter)
OverwriteRelayInformation func(ctx context.Context, r *http.Request, info nip11.RelayInformationDocument) nip11.RelayInformationDocument