diff --git a/README.md b/README.md index c55e9bf..3212fed 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ func main() { jws, ok := ctx.Value(chiauth.JWSKey).(*libauth.JWS) if !ok || !jws.Trusted { http.Error(w, "Unauthorized", http.StatusUnauthorized) + return } userID := jws.Claims["sub"].(string)