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