@@ -1588,8 +1588,7 @@ 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' ,
1592- redirect_uris : [ 'http://localhost:3000/callback' ]
1591+ client_secret : 'test-secret'
15931592 } ) ;
15941593 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
15951594 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1659,8 +1658,7 @@ describe('OAuth Authorization', () => {
16591658 // Mock provider methods for token exchange
16601659 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
16611660 client_id : 'test-client' ,
1662- client_secret : 'test-secret' ,
1663- redirect_uris : [ 'http://localhost:3000/callback' ]
1661+ client_secret : 'test-secret'
16641662 } ) ;
16651663 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
16661664 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1726,8 +1724,7 @@ describe('OAuth Authorization', () => {
17261724 // Mock provider methods for token refresh
17271725 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
17281726 client_id : 'test-client' ,
1729- client_secret : 'test-secret' ,
1730- redirect_uris : [ 'http://localhost:3000/callback' ]
1727+ client_secret : 'test-secret'
17311728 } ) ;
17321729 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
17331730 access_token : 'old-access' ,
@@ -1793,8 +1790,7 @@ describe('OAuth Authorization', () => {
17931790 // Mock provider methods
17941791 ( providerWithCustomValidation . clientInformation as jest . Mock ) . mockResolvedValue ( {
17951792 client_id : 'test-client' ,
1796- client_secret : 'test-secret' ,
1797- redirect_uris : [ 'http://localhost:3000/callback' ]
1793+ client_secret : 'test-secret'
17981794 } ) ;
17991795 ( providerWithCustomValidation . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
18001796 ( providerWithCustomValidation . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1849,8 +1845,7 @@ describe('OAuth Authorization', () => {
18491845 // Mock provider methods
18501846 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
18511847 client_id : 'test-client' ,
1852- client_secret : 'test-secret' ,
1853- redirect_uris : [ 'http://localhost:3000/callback' ]
1848+ client_secret : 'test-secret'
18541849 } ) ;
18551850 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
18561851 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1908,8 +1903,7 @@ describe('OAuth Authorization', () => {
19081903 // Mock provider methods
19091904 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19101905 client_id : 'test-client' ,
1911- client_secret : 'test-secret' ,
1912- redirect_uris : [ 'http://localhost:3000/callback' ]
1906+ client_secret : 'test-secret'
19131907 } ) ;
19141908 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
19151909 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1976,8 +1970,7 @@ describe('OAuth Authorization', () => {
19761970 // Mock provider methods for token exchange
19771971 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
19781972 client_id : 'test-client' ,
1979- client_secret : 'test-secret' ,
1980- redirect_uris : [ 'http://localhost:3000/callback' ]
1973+ client_secret : 'test-secret'
19811974 } ) ;
19821975 ( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( 'test-verifier' ) ;
19831976 ( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2040,8 +2033,7 @@ describe('OAuth Authorization', () => {
20402033 // Mock provider methods for token refresh
20412034 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
20422035 client_id : 'test-client' ,
2043- client_secret : 'test-secret' ,
2044- redirect_uris : [ 'http://localhost:3000/callback' ]
2036+ client_secret : 'test-secret'
20452037 } ) ;
20462038 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
20472039 access_token : 'old-access' ,
@@ -2102,8 +2094,7 @@ describe('OAuth Authorization', () => {
21022094 // Mock provider methods
21032095 ( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
21042096 client_id : 'test-client' ,
2105- client_secret : 'test-secret' ,
2106- redirect_uris : [ 'http://localhost:3000/callback' ]
2097+ client_secret : 'test-secret'
21072098 } ) ;
21082099 ( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
21092100 ( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2165,8 +2156,7 @@ describe('OAuth Authorization', () => {
21652156 } ,
21662157 clientInformation : jest . fn ( ) . mockResolvedValue ( {
21672158 client_id : 'client123' ,
2168- client_secret : 'secret123' ,
2169- redirect_uris : [ 'http://localhost:3000/callback' ]
2159+ client_secret : 'secret123'
21702160 } ) ,
21712161 tokens : jest . fn ( ) . mockResolvedValue ( undefined ) ,
21722162 saveTokens : jest . fn ( ) ,
0 commit comments