From f449605a5ff9cb7cccdf200074ca80095a2220c2 Mon Sep 17 00:00:00 2001 From: Taesu Date: Wed, 18 Feb 2026 07:26:43 +0900 Subject: [PATCH] test(oauth-provider): update remaining consent response assertions from uri to url --- packages/oauth-provider/src/oauth.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/oauth-provider/src/oauth.test.ts b/packages/oauth-provider/src/oauth.test.ts index d11c101466..70763547fb 100644 --- a/packages/oauth-provider/src/oauth.test.ts +++ b/packages/oauth-provider/src/oauth.test.ts @@ -978,18 +978,18 @@ describe("oauth - prompt", async () => { ); expect(consentRes.redirect).toBeTruthy(); - expect(consentRes.uri).toContain(redirectUri); - expect(consentRes.uri).toContain(`code=`); - expect(consentRes.uri).not.toContain(`/consent`); + expect(consentRes.url).toContain(redirectUri); + expect(consentRes.url).toContain(`code=`); + expect(consentRes.url).not.toContain(`/consent`); // Exchange code for tokens and verify narrowed scopes - const callbackUrl = new URL(consentRes.uri); + const callbackUrl = new URL(consentRes.url); const code = callbackUrl.searchParams.get("code")!; expect(code).toBeTruthy(); // Follow the RP callback to exchange the code for tokens let authToken: string | undefined; - await client.$fetch(consentRes.uri, { + await client.$fetch(consentRes.url, { method: "GET", headers: oauthHeaders, onError(context) {