Scope
Decision document — no code changes in this issue.
Per the EC abilities audit, three EC auth flows do NOT migrate to wp-native-auth in v0.1:
| Flow |
Why it stays on REST |
api.auth.register |
Turnstile + invite tokens + community provisioning are EC-specific. Not in wp-native-auth scope. |
api.auth.loginWithGoogle |
OAuth strategy deferred — see wp-native#18 |
api.auth.getOAuthConfig |
Same — supports the Google flow above |
These continue calling extrachill/v1/auth/register, /google, /config/oauth REST routes via the existing extrachill-users endpoints.
What this means for the app
After M7.2.3-M7.2.7 land:
- Email/password login →
wp-native/auth-login (universal)
- Logout →
wp-native/auth-logout
- /me →
wp-native/auth-me
- Refresh →
wp-native/auth-refresh (automatic via AuthFetchTransport)
- Browser handoff →
wp-native/auth-browser-handoff
But:
- Register →
extrachill/v1/auth/register (REST, unchanged)
- Google OAuth →
extrachill/v1/auth/google + /config/oauth (REST, unchanged)
The app will need to keep a small REST client for these three endpoints. Easiest path: keep @extrachill/api-client installed, just use it for these three calls. The full retirement happens in M8 — by then wp-native-auth will have OAuth abilities and EC will register a extrachill/auth-register ability.
Acceptance
This is a decision-tracking issue. No code changes. Closes by being merged into M7.2.9 (the final cleanup PR) which documents the v0.1 boundary.
Follow-ups
- chubes4/wp-native#18 — OAuth strategy decision
- A future EC issue: register
extrachill/auth-register ability for the registration flow
References
Scope
Decision document — no code changes in this issue.
Per the EC abilities audit, three EC auth flows do NOT migrate to wp-native-auth in v0.1:
api.auth.registerapi.auth.loginWithGoogleapi.auth.getOAuthConfigThese continue calling
extrachill/v1/auth/register,/google,/config/oauthREST routes via the existing extrachill-users endpoints.What this means for the app
After M7.2.3-M7.2.7 land:
wp-native/auth-login(universal)wp-native/auth-logoutwp-native/auth-mewp-native/auth-refresh(automatic via AuthFetchTransport)wp-native/auth-browser-handoffBut:
extrachill/v1/auth/register(REST, unchanged)extrachill/v1/auth/google+/config/oauth(REST, unchanged)The app will need to keep a small REST client for these three endpoints. Easiest path: keep
@extrachill/api-clientinstalled, just use it for these three calls. The full retirement happens in M8 — by then wp-native-auth will have OAuth abilities and EC will register aextrachill/auth-registerability.Acceptance
This is a decision-tracking issue. No code changes. Closes by being merged into M7.2.9 (the final cleanup PR) which documents the v0.1 boundary.
Follow-ups
extrachill/auth-registerability for the registration flowReferences