♻️ Make user session optional (#1515)

This commit is contained in:
Luke Vella 2025-01-27 13:02:34 +00:00 committed by GitHub
parent f6a0bca4f8
commit 58d5c42a6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 343 additions and 549 deletions

View file

@ -10,7 +10,7 @@ declare module "next-auth" {
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
*/
interface Session {
user: {
user?: {
id: string;
timeZone?: string | null;
timeFormat?: TimeFormat | null;