Add conditional logging for development, improve token refresh logic, and remove outdated comments

- Wrap `console.log` calls in `if (process.env.NODE_ENV === 'development')` to prevent production logs in `forms/page.tsx`.
- Refactor token refresh logic by relying solely on the `refreshPromise` to avoid race conditions.
- Remove outdated `isRefreshing` flag, utilizing `refreshPromise` as the primary lock.
- Update comments in `IMPLEMENTATION_PLAN.md` to reflect the current progress and eliminate redundant sections.
This commit is contained in:
2025-11-02 22:59:34 +01:00
parent 15f522b9b1
commit fe5d152cee
4 changed files with 268 additions and 217 deletions

View File

@@ -246,7 +246,6 @@ describe('FormField', () => {
render(
<FormField
label="Email"
// @ts-expect-error - Testing missing name
name={undefined}
/>
);