From a7a48a142f47e4c03d39df712a2bf810342cf202 Mon Sep 17 00:00:00 2001 From: Hisam Fahri Date: Sun, 14 Jul 2024 18:49:47 +0700 Subject: [PATCH] docs: Add missing params in refresh token rotation guide (#11386) --- docs/pages/guides/refresh-token-rotation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/guides/refresh-token-rotation.mdx b/docs/pages/guides/refresh-token-rotation.mdx index 8f0e729183..a9240328bd 100644 --- a/docs/pages/guides/refresh-token-rotation.mdx +++ b/docs/pages/guides/refresh-token-rotation.mdx @@ -42,7 +42,7 @@ export const { handlers, auth } = NextAuth({ }), ], callbacks: { - async jwt({ token, account }) { + async jwt({ token, account, profile }) { if (account) { // First login, save the `access_token`, `refresh_token`, and other // details into the JWT