Skip to content

Commit a611c8c

Browse files
committed
fix(auth): Update '/support/ticket' endpoint to return primary email
Because: * We are returning account.email which may not be the user's primary email This commit: * Updates the getAccountInfo helper used by this endpoint to return the user's primary email fixes FXA-13289
1 parent a7638d6 commit a611c8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/fxa-auth-server/lib/routes/subscriptions

packages/fxa-auth-server/lib/routes/subscriptions/support.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const supportRoutes = (
3737

3838
try {
3939
const account = await db.accountRecord(email);
40-
return { uid: account.uid, email: account.email };
40+
return { uid: account.uid, email: account.primaryEmail.email };
4141
} catch (err: any) {
4242
if (err.errno === AppError.ERRNO.ACCOUNT_UNKNOWN) {
4343
return { uid: null, email };

0 commit comments

Comments
 (0)