Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Fix Auth.js sessions not containing all user data
Browse files Browse the repository at this point in the history
  • Loading branch information
juliavdkris committed Nov 17, 2024
1 parent 6de0d09 commit 1a85614
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,12 @@ export const { handle, signIn, signOut } = SvelteKitAuth({
adapter: PrismaAdapter(prisma),
secret: env.AUTH_SECRET,
debug: Boolean(env.DEBUG),
trustHost: true
trustHost: true,

callbacks: {
// ¯\_(ツ)_/¯
session({ session }) {
return session;
}
}
});

0 comments on commit 1a85614

Please sign in to comment.