Storybooks for commit 6960f36bc1f2a5953cb426d7c11fe400555484da

Date
2/24/2026, 2:18:38 AM UTC
Summary
fix(oauth): Prevent validation errors from orphaned client tokens
Description
Because:

* Sentry showed ValidationError: "[0].name" is required
* OAuth token queries use LEFT OUTER JOIN with clients table
* When a client is deleted but tokens remain (orphaned), the JOIN returns NULL
* This may be converted to undefined, which fails Joi validation

This commit:

* Add nullish coalescing in factories.ts when merging OAuth client names; Joi validation explicitely allows null
* Fix shared reference bug in getDefaultClientFields() to return copy of defaults
* Add regression test for undefined client_name handling

Closes #FXA-13132