Add error capture to authentication status in relay.Auth

This commit is contained in:
starcorn2020
2023-05-14 21:02:18 +08:00
committed by fiatjaf_
parent fa00133825
commit 123d3a6a9a

View File

@@ -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)
}