Skip to content

Commit 9a42564

Browse files
committed
fix: add import code for refresh tokens
1 parent cfb7f6a commit 9a42564

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/content/docs/developer-tools/sdks/backend/remix-sdk.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ export default function Protected() {
410410
Pass the `headers` returned from `getKindeSession` in your loader/action responses so refresh tokens rotate automatically. You can also call `refreshTokens()` manually when you need the latest data (for example after a mutation).
411411

412412
```typescript
413+
import { json, LoaderFunctionArgs } from "@remix-run/node";
414+
import { getKindeSession } from "@kinde-oss/kinde-remix-sdk";
415+
413416
// Refresh tokens in the background
414417
export const loader = async ({request}: LoaderFunctionArgs) => {
415418
const {headers} = await getKindeSession(request);

0 commit comments

Comments
 (0)