Skip to content

Commit

Permalink
fix(remix): Deprecate loadUser, loadSession and `loadOrganization…
Browse files Browse the repository at this point in the history
…` on rootAuthLoader (#3443)

Co-authored-by: George Desipris <[email protected]>
  • Loading branch information
anagstef and desiprisg authored May 27, 2024
1 parent f4034ea commit 8529e41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-pets-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/remix': patch
---

Deprecate `loadUser`, `loadSession` and `loadOrganization` on `rootAuthLoader` options
12 changes: 12 additions & 0 deletions packages/remix/src/ssr/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ export type RootAuthLoaderOptions = {
publishableKey?: string;
jwtKey?: string;
secretKey?: string;
/**
* @deprecated This option will be removed in the next major version.
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
*/
loadUser?: boolean;
/**
* @deprecated This option will be removed in the next major version.
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
*/
loadSession?: boolean;
/**
* @deprecated This option will be removed in the next major version.
* Use session token claims instead: https://clerk.com/docs/backend-requests/making/custom-session-token
*/
loadOrganization?: boolean;
authorizedParties?: [];
signInUrl?: string;
Expand Down

0 comments on commit 8529e41

Please sign in to comment.