@@ -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
0 commit comments