Skip to content

Commit

Permalink
add logging for Patreon authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Dec 25, 2022
1 parent 7a9ff5e commit f1b1d4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/dist/patreon.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ module.exports = function (config, app, passport) {
}

const d = JSON.parse(res.body);
console.log('patreon json body', res.body);
const user = {
id: d.data.id,
firstName: d.data.attributes.first_name,
Expand All @@ -81,6 +82,7 @@ module.exports = function (config, app, passport) {
user.role = roles.SPARKLING_CREATOR;
}

console.log('patreon user', user);
done(null, user);
});
}));
Expand Down
2 changes: 2 additions & 0 deletions api/src/patreon.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = function (config, app, passport) {
done(err, {});
}
const d = JSON.parse(res.body);
console.log('patreon json body', res.body);
const user = {
id: d.data.id,
firstName: d.data.attributes.first_name,
Expand All @@ -65,6 +66,7 @@ module.exports = function (config, app, passport) {
if (isCreator) {
user.role = roles.SPARKLING_CREATOR;
}
console.log('patreon user', user);
done(null, user);
});
}));
Expand Down

0 comments on commit f1b1d4e

Please sign in to comment.