Skip to content

Conversation

@vbudhram
Copy link
Contributor

@vbudhram vbudhram commented Feb 2, 2026

Because

  • The fxa-graphql-api server is being removed, and fxa-settings needs direct REST API equivalents for data it currently fetches via GraphQL
  • The /account endpoint returned only subscription data, but fxa-settings needs account metadata, 2FA status, recovery key info, linked accounts, and security events in a single call

This pull request

Issue

Closes: https://mozilla-hub.atlassian.net/browse/FXA-12993

Checklist

  • My commit is GPG signed
  • Tests pass locally (if applicable)
  • Documentation updated (if applicable)
  • RTL rendering verified (if UI changed)

Other Information

- Add consolidated GET /account endpoint that returns all account data in one call
- Add POST /account/email_bounce_status endpoint
- Add POST /account/metrics_opt endpoint for telemetry opt-in/out
- Add metricsOpt(), emailBounceStatus(), and expanded account() methods to auth-client
- Add DEPRECATED_KEYS to content-server account model to handle new localStorage keys from fxa-settings

Part of: FXA-12993
// backend. Discussion in:
//
// https://github.com/mozilla/fxa/issues/1808
createdAt: isA.number().optional(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that all these are optional fields to reduce chances of breaking things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants