Summary
Extract the Nuxt SDK API route paths into shared constants.
Rationale
ThunderIDRoot uses route string literals for the profile endpoint. Shared constants reduce repeated route strings and prevent route updates from becoming inconsistent across Nuxt runtime modules.
Affected areas
packages/nuxt/src/runtime/components/ThunderIDRoot.ts
- Other Nuxt runtime components, plugins, middleware, and Nitro handlers that use the same
/api/auth/* route paths
Required changes
- Define and export shared constants for Nuxt SDK API route paths.
- Replace repeated route string literals with the shared constants.
- Keep the constants in the appropriate Nuxt package layer. Do not duplicate them across runtime modules.
- Preserve the current request methods and route behavior.
Acceptance criteria
- Nuxt API route paths used by more than one runtime module resolve through shared constants.
ThunderIDRoot uses the shared constants for profile fetch and profile update requests.
- No duplicate or inconsistent route path literals remain in the affected Nuxt runtime modules.
- The changes meet the repository ESLint and Prettier requirements.
Backlinks
Summary
Extract the Nuxt SDK API route paths into shared constants.
Rationale
ThunderIDRootuses route string literals for the profile endpoint. Shared constants reduce repeated route strings and prevent route updates from becoming inconsistent across Nuxt runtime modules.Affected areas
packages/nuxt/src/runtime/components/ThunderIDRoot.ts/api/auth/*route pathsRequired changes
Acceptance criteria
ThunderIDRootuses the shared constants for profile fetch and profile update requests.Backlinks