@@ -1635,6 +1635,7 @@ describe("OAuth Authorization", () => {
1635
1635
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
1636
1636
client_id : "test-client" ,
1637
1637
client_secret : "test-secret" ,
1638
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1638
1639
} ) ;
1639
1640
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
1640
1641
( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1705,6 +1706,7 @@ describe("OAuth Authorization", () => {
1705
1706
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
1706
1707
client_id : "test-client" ,
1707
1708
client_secret : "test-secret" ,
1709
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1708
1710
} ) ;
1709
1711
( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( "test-verifier" ) ;
1710
1712
( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1773,6 +1775,7 @@ describe("OAuth Authorization", () => {
1773
1775
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
1774
1776
client_id : "test-client" ,
1775
1777
client_secret : "test-secret" ,
1778
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1776
1779
} ) ;
1777
1780
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
1778
1781
access_token : "old-access" ,
@@ -1841,6 +1844,7 @@ describe("OAuth Authorization", () => {
1841
1844
( providerWithCustomValidation . clientInformation as jest . Mock ) . mockResolvedValue ( {
1842
1845
client_id : "test-client" ,
1843
1846
client_secret : "test-secret" ,
1847
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1844
1848
} ) ;
1845
1849
( providerWithCustomValidation . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
1846
1850
( providerWithCustomValidation . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1896,6 +1900,7 @@ describe("OAuth Authorization", () => {
1896
1900
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
1897
1901
client_id : "test-client" ,
1898
1902
client_secret : "test-secret" ,
1903
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1899
1904
} ) ;
1900
1905
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
1901
1906
( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -1954,6 +1959,7 @@ describe("OAuth Authorization", () => {
1954
1959
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
1955
1960
client_id : "test-client" ,
1956
1961
client_secret : "test-secret" ,
1962
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
1957
1963
} ) ;
1958
1964
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
1959
1965
( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2021,6 +2027,7 @@ describe("OAuth Authorization", () => {
2021
2027
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
2022
2028
client_id : "test-client" ,
2023
2029
client_secret : "test-secret" ,
2030
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
2024
2031
} ) ;
2025
2032
( mockProvider . codeVerifier as jest . Mock ) . mockResolvedValue ( "test-verifier" ) ;
2026
2033
( mockProvider . saveTokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2086,6 +2093,7 @@ describe("OAuth Authorization", () => {
2086
2093
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
2087
2094
client_id : "test-client" ,
2088
2095
client_secret : "test-secret" ,
2096
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
2089
2097
} ) ;
2090
2098
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( {
2091
2099
access_token : "old-access" ,
@@ -2149,6 +2157,7 @@ describe("OAuth Authorization", () => {
2149
2157
( mockProvider . clientInformation as jest . Mock ) . mockResolvedValue ( {
2150
2158
client_id : "test-client" ,
2151
2159
client_secret : "test-secret" ,
2160
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
2152
2161
} ) ;
2153
2162
( mockProvider . tokens as jest . Mock ) . mockResolvedValue ( undefined ) ;
2154
2163
( mockProvider . saveCodeVerifier as jest . Mock ) . mockResolvedValue ( undefined ) ;
@@ -2209,6 +2218,7 @@ describe("OAuth Authorization", () => {
2209
2218
clientInformation : jest . fn ( ) . mockResolvedValue ( {
2210
2219
client_id : "client123" ,
2211
2220
client_secret : "secret123" ,
2221
+ redirect_uris : [ "http://localhost:3000/callback" ] ,
2212
2222
} ) ,
2213
2223
tokens : jest . fn ( ) . mockResolvedValue ( undefined ) ,
2214
2224
saveTokens : jest . fn ( ) ,
0 commit comments