Files
tw-did/patches/passport-ethereum-siwe+0.1.0.patch
2023-11-30 17:36:07 +08:00

16 lines
661 B
Diff

diff --git a/node_modules/passport-ethereum-siwe/lib/strategy.js b/node_modules/passport-ethereum-siwe/lib/strategy.js
index 327f64c..9053ce7 100644
--- a/node_modules/passport-ethereum-siwe/lib/strategy.js
+++ b/node_modules/passport-ethereum-siwe/lib/strategy.js
@@ -42,6 +42,10 @@ Strategy.prototype.authenticate = function(req, options) {
}
var origin = utils.originalOrigin(req);
+ console.log('origin', origin)
+ console.log('domain', url.parse(origin).host)
+ console.log('siweMessage', siweMessage)
+ console.log('req.headers', req.headers)
if (origin !== siweMessage.uri) {
return self.fail({ message: 'URI mismatch.' }, 403);
}