From 123d3a6a9ab1df05b217ab4db23994c697698d84 Mon Sep 17 00:00:00 2001 From: starcorn2020 <71439630+starcorn2020@users.noreply.github.com> Date: Sun, 14 May 2023 21:02:18 +0800 Subject: [PATCH] Add error capture to authentication status in relay.Auth --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6246f9d..837d563 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ func main() { // Send the event by calling relay.Auth. // Returned status is either success, fail, or sent (if no reply given in the 3 second timeout). - auth_status := relay.Auth(ctx, event) + auth_status, err := relay.Auth(ctx, event) fmt.Printf("authenticated as %s: %s\n", npub, auth_status) }