Skip to content

Commit 2b25bc8

Browse files
committed
fix(oidc-client): harden error paths and fix wellknown e2e test assertion
The bad-wellknown e2e test was asserting on a message from the authorize.background() code path, but the factory itself returns early with a "Failed to fetch well-known configuration" error when the HTTP fetch fails — the background path is never reached. Also moves pure helper functions out of authorize.request.utils into authorize.request to reduce circular dependency risk, and simplifies buildAuthorizeOptions to a plain function instead of a Micro effect.
1 parent 40745d1 commit 2b25bc8

7 files changed

Lines changed: 4454 additions & 5617 deletions

File tree

e2e/oidc-suites/src/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ test('oidc client fails to initialize with bad wellknown', async ({ page }) => {
152152
await page.getByRole('button', { name: 'Login (Background)' }).click();
153153

154154
await expect(page.locator('.error')).toContainText(
155-
'Authorization endpoint not found in wellknown configuration',
155+
'Failed to fetch well-known configuration from:',
156156
);
157157
await expect(page.locator('.error')).toContainText('wellknown_error');
158158
});

0 commit comments

Comments
 (0)