From 878f4fed9ec83d67e23e1184a6b4a463727e0a97 Mon Sep 17 00:00:00 2001 From: Isaiah Thomason <47364027+ITenthusiasm@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:37:27 -0400 Subject: [PATCH] refactor(types): Clarify `redirectURIQueryParams` Type This argument expects an object of strings. This should be clarified to developers so that they don't mistakenly pass, for instance, an instance of `URLSearchParams`. --- lib/build/recipe/thirdparty/types.d.ts | 2 +- lib/ts/recipe/thirdparty/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build/recipe/thirdparty/types.d.ts b/lib/build/recipe/thirdparty/types.d.ts index 317246a01..63d3bbc62 100644 --- a/lib/build/recipe/thirdparty/types.d.ts +++ b/lib/build/recipe/thirdparty/types.d.ts @@ -110,7 +110,7 @@ export declare type TypeProvider = { exchangeAuthCodeForOAuthTokens: (input: { redirectURIInfo: { redirectURIOnProviderDashboard: string; - redirectURIQueryParams: any; + redirectURIQueryParams: Record; pkceCodeVerifier?: string; }; userContext?: UserContext; diff --git a/lib/ts/recipe/thirdparty/types.ts b/lib/ts/recipe/thirdparty/types.ts index 5a22d45b8..73a02e4a9 100644 --- a/lib/ts/recipe/thirdparty/types.ts +++ b/lib/ts/recipe/thirdparty/types.ts @@ -107,7 +107,7 @@ export type TypeProvider = { exchangeAuthCodeForOAuthTokens: (input: { redirectURIInfo: { redirectURIOnProviderDashboard: string; - redirectURIQueryParams: any; + redirectURIQueryParams: Record; pkceCodeVerifier?: string; }; userContext?: UserContext;