From bb8deb221e7deda9387d9f41deb197a2c28da5ff Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 2 May 2023 12:12:43 +0200 Subject: [PATCH] feat: add name and email to id token --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index 71c7c01..b6a94b9 100644 --- a/app.js +++ b/app.js @@ -114,6 +114,9 @@ app.post('/oauth/token', (req, res) => { exp: date + 7200, azp: session.clientId, name: 'Example Person', + given_name: 'Example', + family_name: 'Person', + email: session.email, picture: 'https://cdn.playbuzz.com/cdn/5458360f-32ea-460e-a707-1a2d26760558/70bda687-cb84-4756-8a44-8cf735ed87b3.jpg' })