Skip to content

Commit 388fdee

Browse files
authored
feat(#106): proper nonce setting in go-bsv-middleware utils (#116)
1 parent e034629 commit 388fdee

File tree

8 files changed

+705
-461
lines changed

8 files changed

+705
-461
lines changed

examples/auth/basic/auth.go

Lines changed: 325 additions & 36 deletions
Large diffs are not rendered by default.

examples/auth/certificate/certificate.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,17 @@ func main() {
112112
}
113113
log.Println("✓ Auth completed")
114114

115-
log.Println("\n📡 STEP 2: Sending general request to test authorization")
116-
if err := callPingEndpoint(clientWallet, responseData); err != nil {
117-
log.Fatalf("Failed to call ping endpoint: %v", err)
118-
}
119-
log.Println("✓ General request completed")
120-
121-
log.Println("\n📡 STEP 3: Sending certificates")
115+
log.Println("\n📡 STEP 2: Sending certificates")
122116
if err := sendCertificate(context.Background(), clientWallet, responseData); err != nil {
123117
log.Fatalf("Failed to send certificate: %v", err)
124118
}
125119
log.Println("✓ Certificate request completed")
120+
121+
log.Println("\n📡 STEP 3: Sending general request to test authorization")
122+
if err := callPingEndpoint(clientWallet, responseData); err != nil {
123+
log.Fatalf("Failed to call ping endpoint: %v", err)
124+
}
125+
log.Println("✓ General request completed")
126126
}
127127

128128
// pingHandler handles ping requests and returns a simple "Pong!" response

0 commit comments

Comments
 (0)