Skip to content

Commit

Permalink
feat(member): member scope
Browse files Browse the repository at this point in the history
  • Loading branch information
facugon committed Jul 25, 2023
1 parent 41f1112 commit 9c94573
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/router/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ module.exports = (app) => {
}
}

if (req.query.scopes.includes('member')) {
profile.member = {
credential: session.member.credential,
notifications: session.member.notifications,
tags: session.member.tags,
creation_date: session.member.creation_date
}
}

return res.json(profile)
}
} catch (err) {
Expand Down

0 comments on commit 9c94573

Please sign in to comment.