We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e0756 commit 27c602aCopy full SHA for 27c602a
1 file changed
api/auth_middleware.go
@@ -18,8 +18,6 @@ const (
18
func (app *ApiServer) recoverAuthorityFromSignatureHeaders(c *fiber.Ctx) (int32, string) {
19
message := c.Get(messageHeader)
20
signature := c.Get(signatureHeader)
21
- fmt.Println("message", message)
22
- fmt.Println("signature", signature)
23
if message == "" || signature == "" {
24
return 0, ""
25
}
@@ -71,7 +69,6 @@ func (app *ApiServer) getAuthedWallet(c *fiber.Ctx) string {
71
69
72
70
// Middleware to set authedUserId and authedWallet in context
73
func (app *ApiServer) authMiddleware(c *fiber.Ctx) error {
74
- fmt.Println("authMiddleware")
75
userId, wallet := app.recoverAuthorityFromSignatureHeaders(c)
76
c.Locals("authedUserId", userId)
77
c.Locals("authedWallet", wallet)
0 commit comments