@@ -690,8 +690,8 @@ describe("OAuth Authorization", () => {
690
690
exchangeAuthorization ( "https://auth.example.com" , {
691
691
clientInformation : validClientInfo ,
692
692
authorizationCode : "code123" ,
693
- redirectUri : "http://localhost:3000/callback" ,
694
693
codeVerifier : "verifier123" ,
694
+ redirectUri : "http://localhost:3000/callback" ,
695
695
} )
696
696
) . rejects . toThrow ( ) ;
697
697
} ) ;
@@ -705,9 +705,9 @@ describe("OAuth Authorization", () => {
705
705
await expect (
706
706
exchangeAuthorization ( "https://auth.example.com" , {
707
707
clientInformation : validClientInfo ,
708
- redirectUri : "http://localhost:3000/callback" ,
709
708
authorizationCode : "code123" ,
710
709
codeVerifier : "verifier123" ,
710
+ redirectUri : "http://localhost:3000/callback" ,
711
711
} )
712
712
) . rejects . toThrow ( "Token exchange failed" ) ;
713
713
} ) ;
@@ -751,6 +751,9 @@ describe("OAuth Authorization", () => {
751
751
} ) ,
752
752
expect . objectContaining ( {
753
753
method : "POST" ,
754
+ headers : new Headers ( {
755
+ "Content-Type" : "application/x-www-form-urlencoded" ,
756
+ } ) ,
754
757
} )
755
758
) ;
756
759
0 commit comments