Update Baileys lib

This commit is contained in:
Darren Clarke 2023-06-28 15:19:23 +00:00 committed by GitHub
parent 4d743c5e67
commit d404901583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 200 additions and 117 deletions

View file

@ -78,11 +78,11 @@ const nextAuthOptions = (config: IAppConfig, req: NextRequest) => {
};
};
const handler = async (req: NextRequest) => {
const handler = async (req: NextRequest, context: any) => {
const config = await loadConfig();
const authOptions = nextAuthOptions(config, req);
// @ts-expect-error: non-existent property
return NextAuth(authOptions)(req);
return NextAuth(req, context, authOptions);
};
export { handler as GET, handler as POST };