Coupling
src/auth/context.tsx:179 and src/auth/context.tsx:230 hardcode registration_source: 'extrachill-app' in the registration POST payload.
registration_source: 'extrachill-app',
This identifies which client created the account on the server side. It's useful telemetry but the literal string is consumer-specific.
Target shape
Take it from the brand / api config:
// extrachill.config.ts (consumer side)
export const config: WPNativeConfig = {
api: {
baseUrl: 'https://extrachill.com/wp-json',
clientId: 'extrachill-app', // sent as registration_source on /register
clientHeader: 'ExtraChill-Client',
},
...
};
The shell's auth provider reads config.api.clientId and includes it on register / google / any other endpoint that wants client identity.
Acceptance
Related
Part of the wp-native extraction effort. See chubes4/wp-native ROADMAP M5/M7.
Coupling
src/auth/context.tsx:179andsrc/auth/context.tsx:230hardcoderegistration_source: 'extrachill-app'in the registration POST payload.This identifies which client created the account on the server side. It's useful telemetry but the literal string is consumer-specific.
Target shape
Take it from the brand / api config:
The shell's auth provider reads
config.api.clientIdand includes it on register / google / any other endpoint that wants client identity.Acceptance
'extrachill-app'string in shell codeclientIdflows from consumer configRelated
Part of the wp-native extraction effort. See chubes4/wp-native ROADMAP M5/M7.