Skip to content

Commit

Permalink
debug: log context object
Browse files Browse the repository at this point in the history
  • Loading branch information
brMonteiro-G authored Nov 15, 2023
1 parent 75b726f commit a59db80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/setup/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = async (app) => {

async function facebook (context) {
const { inApp = '', userId = '', env = '' } = _.get(context.session, 'grant.dynamic', {})

console.log("this is the context", context)
const accessToken = context.query.access_token
const url = `https://graph.facebook.com/v18.0/me?fields=id,email&access_token=${accessToken}`
const resp = await Axios.get(url)
Expand Down

0 comments on commit a59db80

Please sign in to comment.