./src/app/api/auth/[…nextauth]/route.ts:10:11
Type error: Type ‘({ user, account }: { user: User | AdapterUser; account: Account; profile?: Profile; email?: { verificationRequest?: boolean; }; credentials?: Record<string, CredentialInput>; }) => Promise<…>’ is not assignable to type ‘(params: { user: User | AdapterUser; account: Account; profile?: Profile; email?: { verificationRequest?: boolean; }; credentials?: Record<string, CredentialInput>; }) => Awaitable<…>’.
Type ‘Promise<false | User>’ is not assignable to type ‘Awaitable<string | boolean>’.
Type ‘Promise<false | User>’ is not assignable to type ‘PromiseLike<string | boolean>’.
Types of property ‘then’ are incompatible.
Type ‘<TResult1 = false | User, TResult2 = never>(onfulfilled?: (value: false | User) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike<…>) => Promise<…>’ is not assignable to type ‘<TResult1 = string | boolean, TResult2 = never>(onfulfilled?: (value: string | boolean) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike<…>) => PromiseLike<…>’.
Types of parameters ‘onfulfilled’ and ‘onfulfilled’ are incompatible.
Types of parameters ‘value’ and ‘value’ are incompatible.
Type ‘false | User’ is not assignable to type ‘string | boolean’.
Type ‘User’ is not assignable to type ‘string | boolean’.