From a961a98dcf4dc61418da853fbadcde5b2b3401e0 Mon Sep 17 00:00:00 2001 From: Rob Colbert Date: Mon, 11 May 2026 17:59:06 -0400 Subject: [PATCH] fix(auth): include persona field in sign-in response The persona field was missing from both the session object and the API response during sign-in, causing User Settings to display an empty field even when the user had a persona defined in the database. --- gadget-code/src/controllers/api/v1/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gadget-code/src/controllers/api/v1/auth.ts b/gadget-code/src/controllers/api/v1/auth.ts index 596972f..bf8fc48 100644 --- a/gadget-code/src/controllers/api/v1/auth.ts +++ b/gadget-code/src/controllers/api/v1/auth.ts @@ -45,6 +45,7 @@ export class AuthApiControllerV1 extends DtpController { email: user.email, displayName: user.displayName, flags: user.flags, + persona: user.persona, }; this.log.info("creating JSON Web Token for user session", { @@ -69,6 +70,7 @@ export class AuthApiControllerV1 extends DtpController { email: user.email, displayName: user.displayName, flags: user.flags, + persona: user.persona, }, token, });