mirror of
https://github.com/moda-gov-tw/tw-did.git
synced 2026-01-09 20:58:00 -05:00
16 lines
661 B
Diff
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);
|
|
}
|