Skip to content

Commit 3ccff1c

Browse files
committed
cleanup
1 parent 3444b67 commit 3ccff1c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/client/auth.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,8 @@ describe("OAuth Authorization", () => {
690690
exchangeAuthorization("https://auth.example.com", {
691691
clientInformation: validClientInfo,
692692
authorizationCode: "code123",
693-
redirectUri: "http://localhost:3000/callback",
694693
codeVerifier: "verifier123",
694+
redirectUri: "http://localhost:3000/callback",
695695
})
696696
).rejects.toThrow();
697697
});
@@ -705,9 +705,9 @@ describe("OAuth Authorization", () => {
705705
await expect(
706706
exchangeAuthorization("https://auth.example.com", {
707707
clientInformation: validClientInfo,
708-
redirectUri: "http://localhost:3000/callback",
709708
authorizationCode: "code123",
710709
codeVerifier: "verifier123",
710+
redirectUri: "http://localhost:3000/callback",
711711
})
712712
).rejects.toThrow("Token exchange failed");
713713
});
@@ -751,6 +751,9 @@ describe("OAuth Authorization", () => {
751751
}),
752752
expect.objectContaining({
753753
method: "POST",
754+
headers: new Headers({
755+
"Content-Type": "application/x-www-form-urlencoded",
756+
}),
754757
})
755758
);
756759

src/client/auth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,13 @@ export async function startAuthorization(
528528
scope,
529529
state,
530530
resource,
531-
addClientAuthentication,
532531
}: {
533532
metadata?: OAuthMetadata;
534533
clientInformation: OAuthClientInformation;
535534
redirectUrl: string | URL;
536535
scope?: string;
537536
state?: string;
538537
resource?: URL;
539-
addClientAuthentication?: OAuthClientProvider["addClientAuthentication"];
540538
},
541539
): Promise<{ authorizationUrl: URL; codeVerifier: string }> {
542540
const responseType = "code";

0 commit comments

Comments
 (0)