Skip to content

Commit

Permalink
add log protocol and origin
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Nov 19, 2024
1 parent 39f8530 commit 3584fbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3584fbc

Please sign in to comment.