From 84ba15babe9c73c80667b26ae65fceadc83daa67 Mon Sep 17 00:00:00 2001 From: Asara Date: Mon, 23 Sep 2024 22:18:05 -0400 Subject: [PATCH] request auth when rejecting because of no auth --- nostr/policies.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nostr/policies.go b/nostr/policies.go index dcfb177..0bfdde0 100644 --- a/nostr/policies.go +++ b/nostr/policies.go @@ -28,6 +28,7 @@ func RejectUnregisteredNpubs(ctx context.Context, event *nostr.Event) (reject bo authenticatedUser := khatru.GetAuthed(ctx) if authenticatedUser == "" { l.Debug().Msgf("kind: %v, pubkey not authed: %s", event.Kind, event.PubKey) + khatru.RequestAuth(ctx) return true, fmt.Sprintf("auth-required: interacting with this relay requires authentication") }