Skip to content

Commit

Permalink
fix: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Sep 29, 2024
1 parent b05ed11 commit 5e9da24
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/app/api/auth/[...nextauth]/auth-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ export const authOptions: NextAuthOptions = {
async session({ session, user }) {
if (!session.user) return session;

session.user.id = user.id;
session.user.stripeCustomerId = user.stripeCustomerId;
session.user.isActive = user.isActive;
// session.user.id = user.id;
// session.user.stripeCustomerId = user.stripeCustomerId;
// session.user.isActive = user.isActive;

return session;
return {
...session,
user: {
...session.user,
id: user.id,
// stripeCustomerId: user.stripeCustomerId,
// isActive: user.isActive,
},
};
},
},
events: {
Expand Down

0 comments on commit 5e9da24

Please sign in to comment.