Skip to content

Commit

Permalink
docs: Add missing params in refresh token rotation guide (nextauthjs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hisamafahri authored Jul 14, 2024
1 parent a3d3d4b commit a7a48a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/refresh-token-rotation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7a48a1

Please sign in to comment.