Skip to content

Commit 8529e41

Browse files
anagstefdesiprisg
andauthored
fix(remix): Deprecate loadUser, loadSession and loadOrganization on rootAuthLoader (#3443)
Co-authored-by: George Desipris <73396808+desiprisg@users.noreply.github.com>
1 parent f4034ea commit 8529e41

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/hip-pets-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/remix': patch
3+
---
4+
5+
Deprecate `loadUser`, `loadSession` and `loadOrganization` on `rootAuthLoader` options

packages/remix/src/ssr/types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ export type RootAuthLoaderOptions = {
99
publishableKey?: string;
1010
jwtKey?: string;
1111
secretKey?: string;
12+
/**
13+
* @deprecated This option will be removed in the next major version.
14+
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
15+
*/
1216
loadUser?: boolean;
17+
/**
18+
* @deprecated This option will be removed in the next major version.
19+
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
20+
*/
1321
loadSession?: boolean;
22+
/**
23+
* @deprecated This option will be removed in the next major version.
24+
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
25+
*/
1426
loadOrganization?: boolean;
1527
authorizedParties?: [];
1628
signInUrl?: string;

0 commit comments

Comments
 (0)