@@ -2498,8 +2498,8 @@ function webInstanceOf<T>(input: unknown, toStringTag: string): input is T {
2498
2498
* {@link !"Authorization Code Grant"} parameters are extracted from this.
2499
2499
* @param checks CSRF Protection checks like PKCE, expected state, or expected
2500
2500
* nonce
2501
- * @param parameters Additional parameters that will be sent to the token
2502
- * endpoint, typically used for parameters such as `resource`
2501
+ * @param tokenEndpointParameters Additional parameters that will be sent to the
2502
+ * token endpoint, typically used for parameters such as `resource`
2503
2503
* ({@link !"Resource Indicators" Resource Indicator}) in cases where multiple
2504
2504
* resource indicators were requested but the authorization server only
2505
2505
* supports issuing an access token with a single audience
@@ -2513,7 +2513,7 @@ export async function authorizationCodeGrant(
2513
2513
config : Configuration ,
2514
2514
currentUrl : URL | Request ,
2515
2515
checks ?: AuthorizationCodeGrantChecks ,
2516
- parameters ?: URLSearchParams | Record < string , string > ,
2516
+ tokenEndpointParameters ?: URLSearchParams | Record < string , string > ,
2517
2517
options ?: AuthorizationCodeGrantOptions ,
2518
2518
) : Promise < oauth . TokenEndpointResponse & TokenEndpointResponseHelpers > {
2519
2519
checkConfig ( config )
@@ -2590,7 +2590,7 @@ export async function authorizationCodeGrant(
2590
2590
// @ts -expect-error
2591
2591
checks ?. pkceCodeVerifier || oauth . _nopkce ,
2592
2592
{
2593
- additionalParameters : parameters ,
2593
+ additionalParameters : tokenEndpointParameters ,
2594
2594
[ oauth . customFetch ] : fetch ,
2595
2595
[ oauth . allowInsecureRequests ] : ! tlsOnly ,
2596
2596
DPoP : options ?. DPoP ,
@@ -2624,7 +2624,7 @@ export async function authorizationCodeGrant(
2624
2624
// @ts -expect-error
2625
2625
undefined ,
2626
2626
checks ,
2627
- parameters ,
2627
+ tokenEndpointParameters ,
2628
2628
{
2629
2629
...options ,
2630
2630
flag : retry ,
0 commit comments