From 250a6113b3e0d67aa1a86bad5c5fe9297865483f Mon Sep 17 00:00:00 2001 From: Alec Wilson Date: Wed, 4 Jan 2023 10:51:54 +0000 Subject: [PATCH] Add given_name and family_name attributes to id token --- src/services/tokenGenerator.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/tokenGenerator.ts b/src/services/tokenGenerator.ts index a9527937..ef021117 100644 --- a/src/services/tokenGenerator.ts +++ b/src/services/tokenGenerator.ts @@ -162,6 +162,8 @@ export class JwtTokenGenerator implements TokenGenerator { email_verified: Boolean( attributeValue("email_verified", user.Attributes) ?? false ), + given_name: attributeValue("given_name", user.Attributes), + family_name: attributeValue("family_name", user.Attributes), event_id: eventId, iat: authTime, jti: uuid.v4(),