Skip to content

Commit

Permalink
docs: close the callback object (#5251)
Browse files Browse the repository at this point in the history
* Update role-based-login-strategy.md

* Apply suggestions from code review

Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
silviosisa and balazsorban44 committed Sep 6, 2022
1 parent aeb3a44 commit 78664aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/tutorials/role-based-login-strategy.md
Expand Up @@ -29,6 +29,7 @@ callbacks: {
async session({ session, token, user }) {
session.user.role = user.role; // Add role value to user object so it is passed along with session
return session;
}
},
```
Expand Down

1 comment on commit 78664aa

@vercel
Copy link

@vercel vercel bot commented on 78664aa Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.