@@ -1587,7 +1587,8 @@ describe('OAuth Authorization', () => {
15871587 // Mock provider methods for authorization flow
15881588 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
15891589 client_id : 'test-client' ,
1590- client_secret : 'test-secret'
1590+ client_secret : 'test-secret' ,
1591+ redirect_uris : [ 'http://localhost:3000/callback' ]
15911592 } ) ;
15921593 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
15931594 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1657,7 +1658,8 @@ describe('OAuth Authorization', () => {
16571658 // Mock provider methods for token exchange
16581659 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
16591660 client_id : 'test-client' ,
1660- client_secret : 'test-secret'
1661+ client_secret : 'test-secret' ,
1662+ redirect_uris : [ 'http://localhost:3000/callback' ]
16611663 } ) ;
16621664 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
16631665 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1723,7 +1725,8 @@ describe('OAuth Authorization', () => {
17231725 // Mock provider methods for token refresh
17241726 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
17251727 client_id : 'test-client' ,
1726- client_secret : 'test-secret'
1728+ client_secret : 'test-secret' ,
1729+ redirect_uris : [ 'http://localhost:3000/callback' ]
17271730 } ) ;
17281731 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
17291732 access_token : 'old-access' ,
@@ -1789,7 +1792,8 @@ describe('OAuth Authorization', () => {
17891792 // Mock provider methods
17901793 ( providerWithCustomValidation . clientInformation as jest . Mock ) . mockResolvedValue ( {
17911794 client_id : 'test-client' ,
1792- client_secret : 'test-secret'
1795+ client_secret : 'test-secret' ,
1796+ redirect_uris : [ 'http://localhost:3000/callback' ]
17931797 } ) ;
17941798 ( providerWithCustomValidation . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
17951799 ( providerWithCustomValidation . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1844,7 +1848,8 @@ describe('OAuth Authorization', () => {
18441848 // Mock provider methods
18451849 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
18461850 client_id : 'test-client' ,
1847- client_secret : 'test-secret'
1851+ client_secret : 'test-secret' ,
1852+ redirect_uris : [ 'http://localhost:3000/callback' ]
18481853 } ) ;
18491854 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
18501855 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1902,7 +1907,8 @@ describe('OAuth Authorization', () => {
19021907 // Mock provider methods
19031908 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19041909 client_id : 'test-client' ,
1905- client_secret : 'test-secret'
1910+ client_secret : 'test-secret' ,
1911+ redirect_uris : [ 'http://localhost:3000/callback' ]
19061912 } ) ;
19071913 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
19081914 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1969,7 +1975,8 @@ describe('OAuth Authorization', () => {
19691975 // Mock provider methods for token exchange
19701976 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19711977 client_id : 'test-client' ,
1972- client_secret : 'test-secret'
1978+ client_secret : 'test-secret' ,
1979+ redirect_uris : [ 'http://localhost:3000/callback' ]
19731980 } ) ;
19741981 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
19751982 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2032,7 +2039,8 @@ describe('OAuth Authorization', () => {
20322039 // Mock provider methods for token refresh
20332040 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
20342041 client_id : 'test-client' ,
2035- client_secret : 'test-secret'
2042+ client_secret : 'test-secret' ,
2043+ redirect_uris : [ 'http://localhost:3000/callback' ]
20362044 } ) ;
20372045 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
20382046 access_token : 'old-access' ,
@@ -2093,7 +2101,8 @@ describe('OAuth Authorization', () => {
20932101 // Mock provider methods
20942102 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
20952103 client_id : 'test-client' ,
2096- client_secret : 'test-secret'
2104+ client_secret : 'test-secret' ,
2105+ redirect_uris : [ 'http://localhost:3000/callback' ]
20972106 } ) ;
20982107 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
20992108 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2155,7 +2164,8 @@ describe('OAuth Authorization', () => {
21552164 } ,
21562165 clientInformation : jest . fn ( ) . mockResolvedValue ( {
21572166 client_id : 'client123' ,
2158- client_secret : 'secret123'
2167+ client_secret : 'secret123' ,
2168+ redirect_uris : [ 'http://localhost:3000/callback' ]
21592169 } ) ,
21602170 tokens : jest . fn ( ) . mockResolvedValue ( undefined ) ,
21612171 saveTokens : jest . fn ( ) ,
0 commit comments