diff --git a/index.js b/index.js index a4d6a9b..cbf3869 100644 --- a/index.js +++ b/index.js @@ -155,10 +155,11 @@ app.post( app.get(process.env.CALLBACK_URL, async (req, res, next) => { try { + console.log("protocol",req.protocol) + console.log("origin",req.origin) + console.log(req.protocol) const config = await getProviderConfig(); - console.log(JSON.stringify(config)) const currentUrl = getCurrentUrl(req); - console.log(currentUrl) const tokens = await client.authorizationCodeGrant(config, currentUrl, { expectedNonce: req.session.nonce, expectedState: req.session.state,