mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
ath fixes
This commit is contained in:
parent
44a9b01a5e
commit
b956656ed9
@ -14,6 +14,8 @@ import { incrementSignInCount, incrementSessionRefreshCount } from './utils/clou
|
|||||||
*
|
*
|
||||||
* @see https://next-auth.js.org/getting-started/typescript#module-augmentation
|
* @see https://next-auth.js.org/getting-started/typescript#module-augmentation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
declare module "next-auth" {
|
declare module "next-auth" {
|
||||||
interface Session extends DefaultSession {
|
interface Session extends DefaultSession {
|
||||||
user: {
|
user: {
|
||||||
@ -21,6 +23,7 @@ declare module "next-auth" {
|
|||||||
// ...other properties
|
// ...other properties
|
||||||
// role: UserRole;
|
// role: UserRole;
|
||||||
} & DefaultSession["user"];
|
} & DefaultSession["user"];
|
||||||
|
error?: string; // Optional property to handle errors
|
||||||
}
|
}
|
||||||
|
|
||||||
// interface User {
|
// interface User {
|
||||||
|
Loading…
Reference in New Issue
Block a user