Skip to content

Commit

Permalink
chore: log context.query
Browse files Browse the repository at this point in the history
  • Loading branch information
brMonteiro-G authored Nov 15, 2023
1 parent e4da783 commit a238d17
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)
console.log('this is the context', context.query)
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 a238d17

Please sign in to comment.