Skip to content

Commit af6c9df

Browse files
docs: rm unused import statement from refresh token rotation page example code (#12804)
chore(docs/refresh-token-rotation): deleted unused/out-of-place import statement For Next.js, there was a leftover import statement in the server-side code from the client-side code. I deleted the leftover import statement because useEffect is out of place in the server side, and thus was left unused in the server-side code.
1 parent cc762a0 commit af6c9df

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/pages/guides/refresh-token-rotation.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ If the token refresh was unsuccesful, we can force a re-authentication.
241241
<Code.Next>
242242

243243
```tsx filename="app/dashboard/page.tsx"
244-
import { useEffect } from "react"
245244
import { auth, signIn } from "@/auth"
246245

247246
export default async function Page() {

0 commit comments

Comments
 (0)