@@ -1588,7 +1588,8 @@ describe('OAuth Authorization', () => {
15881588 // Mock provider methods for authorization flow
15891589 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
15901590 client_id : 'test-client' ,
1591- client_secret : 'test-secret'
1591+ client_secret : 'test-secret' ,
1592+ redirect_uris : [ 'http://localhost:3000/callback' ]
15921593 } ) ;
15931594 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
15941595 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1658,7 +1659,8 @@ describe('OAuth Authorization', () => {
16581659 // Mock provider methods for token exchange
16591660 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
16601661 client_id : 'test-client' ,
1661- client_secret : 'test-secret'
1662+ client_secret : 'test-secret' ,
1663+ redirect_uris : [ 'http://localhost:3000/callback' ]
16621664 } ) ;
16631665 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
16641666 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1724,7 +1726,8 @@ describe('OAuth Authorization', () => {
17241726 // Mock provider methods for token refresh
17251727 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
17261728 client_id : 'test-client' ,
1727- client_secret : 'test-secret'
1729+ client_secret : 'test-secret' ,
1730+ redirect_uris : [ 'http://localhost:3000/callback' ]
17281731 } ) ;
17291732 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
17301733 access_token : 'old-access' ,
@@ -1790,7 +1793,8 @@ describe('OAuth Authorization', () => {
17901793 // Mock provider methods
17911794 ( providerWithCustomValidation . clientInformation as jest . Mock ) . mockResolvedValue ( {
17921795 client_id : 'test-client' ,
1793- client_secret : 'test-secret'
1796+ client_secret : 'test-secret' ,
1797+ redirect_uris : [ 'http://localhost:3000/callback' ]
17941798 } ) ;
17951799 ( providerWithCustomValidation . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
17961800 ( providerWithCustomValidation . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1845,7 +1849,8 @@ describe('OAuth Authorization', () => {
18451849 // Mock provider methods
18461850 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
18471851 client_id : 'test-client' ,
1848- client_secret : 'test-secret'
1852+ client_secret : 'test-secret' ,
1853+ redirect_uris : [ 'http://localhost:3000/callback' ]
18491854 } ) ;
18501855 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
18511856 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1903,7 +1908,8 @@ describe('OAuth Authorization', () => {
19031908 // Mock provider methods
19041909 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19051910 client_id : 'test-client' ,
1906- client_secret : 'test-secret'
1911+ client_secret : 'test-secret' ,
1912+ redirect_uris : [ 'http://localhost:3000/callback' ]
19071913 } ) ;
19081914 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
19091915 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1970,7 +1976,8 @@ describe('OAuth Authorization', () => {
19701976 // Mock provider methods for token exchange
19711977 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19721978 client_id : 'test-client' ,
1973- client_secret : 'test-secret'
1979+ client_secret : 'test-secret' ,
1980+ redirect_uris : [ 'http://localhost:3000/callback' ]
19741981 } ) ;
19751982 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
19761983 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2033,7 +2040,8 @@ describe('OAuth Authorization', () => {
20332040 // Mock provider methods for token refresh
20342041 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
20352042 client_id : 'test-client' ,
2036- client_secret : 'test-secret'
2043+ client_secret : 'test-secret' ,
2044+ redirect_uris : [ 'http://localhost:3000/callback' ]
20372045 } ) ;
20382046 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
20392047 access_token : 'old-access' ,
@@ -2094,7 +2102,8 @@ describe('OAuth Authorization', () => {
20942102 // Mock provider methods
20952103 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
20962104 client_id : 'test-client' ,
2097- client_secret : 'test-secret'
2105+ client_secret : 'test-secret' ,
2106+ redirect_uris : [ 'http://localhost:3000/callback' ]
20982107 } ) ;
20992108 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
21002109 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2156,7 +2165,8 @@ describe('OAuth Authorization', () => {
21562165 } ,
21572166 clientInformation : jest . fn ( ) . mockResolvedValue ( {
21582167 client_id : 'client123' ,
2159- client_secret : 'secret123'
2168+ client_secret : 'secret123' ,
2169+ redirect_uris : [ 'http://localhost:3000/callback' ]
21602170 } ) ,
21612171 tokens : jest . fn ( ) . mockResolvedValue ( undefined ) ,
21622172 saveTokens : jest . fn ( ) ,
0 commit comments