Skip to content

Commit 49c38ef

Browse files
authored
fix(*): Correct type for authorizedParties (#4964)
1 parent 5bbb053 commit 49c38ef

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.changeset/dirty-cooks-pay.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/tanstack-start': patch
3+
'@clerk/react-router': patch
4+
'@clerk/remix': patch
5+
---
6+
7+
Fix incorrect type for `authorizedParties` option

packages/react-router/src/ssr/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ export type RootAuthLoaderOptions = {
6868
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
6969
*/
7070
loadOrganization?: boolean;
71-
authorizedParties?: [];
7271
signInUrl?: string;
7372
signUpUrl?: string;
74-
} & Pick<VerifyTokenOptions, 'audience'> &
73+
} & Pick<VerifyTokenOptions, 'audience' | 'authorizedParties'> &
7574
MultiDomainAndOrProxy &
7675
SignInForceRedirectUrl &
7776
SignInFallbackRedirectUrl &

packages/remix/src/ssr/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export type RootAuthLoaderOptions = {
3131
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
3232
*/
3333
loadOrganization?: boolean;
34-
authorizedParties?: [];
3534
signInUrl?: string;
3635
signUpUrl?: string;
37-
} & Pick<VerifyTokenOptions, 'audience'> &
36+
} & Pick<VerifyTokenOptions, 'audience' | 'authorizedParties'> &
3837
MultiDomainAndOrProxy &
3938
SignInForceRedirectUrl &
4039
SignInFallbackRedirectUrl &

packages/tanstack-start/src/server/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ export type LoaderOptions = {
1212
publishableKey?: string;
1313
jwtKey?: string;
1414
secretKey?: string;
15-
authorizedParties?: [];
1615
signInUrl?: string;
1716
signUpUrl?: string;
18-
} & Pick<VerifyTokenOptions, 'audience'> &
17+
} & Pick<VerifyTokenOptions, 'audience' | 'authorizedParties'> &
1918
MultiDomainAndOrProxy &
2019
SignInForceRedirectUrl &
2120
SignInFallbackRedirectUrl &

0 commit comments

Comments
 (0)