Skip to content

Commit

Permalink
refactor(types): Clarify redirectURIQueryParams Type
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
ITenthusiasm committed Oct 14, 2024
1 parent 3f9bb3f commit 2e25c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/build/recipe/thirdparty/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export declare type TypeProvider = {
exchangeAuthCodeForOAuthTokens: (input: {
redirectURIInfo: {
redirectURIOnProviderDashboard: string;
redirectURIQueryParams: any;
redirectURIQueryParams: Record<string, string>;
pkceCodeVerifier?: string;
};
userContext?: UserContext;
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/thirdparty/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export type TypeProvider = {
exchangeAuthCodeForOAuthTokens: (input: {
redirectURIInfo: {
redirectURIOnProviderDashboard: string;
redirectURIQueryParams: any;
redirectURIQueryParams: Record<string, string>;
pkceCodeVerifier?: string;
};
userContext?: UserContext;
Expand Down

0 comments on commit 2e25c4f

Please sign in to comment.