From b956656ed93e0e6f5d86241e7aa3ff0bec14a602 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Mon, 13 Nov 2023 13:16:15 +0100 Subject: [PATCH] ath fixes --- app/auth.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/auth.ts b/app/auth.ts index 4e6b6dc8b..eb8501e85 100644 --- a/app/auth.ts +++ b/app/auth.ts @@ -14,6 +14,8 @@ import { incrementSignInCount, incrementSessionRefreshCount } from './utils/clou * * @see https://next-auth.js.org/getting-started/typescript#module-augmentation */ + + declare module "next-auth" { interface Session extends DefaultSession { user: { @@ -21,6 +23,7 @@ declare module "next-auth" { // ...other properties // role: UserRole; } & DefaultSession["user"]; + error?: string; // Optional property to handle errors } // interface User {