Update Baileys lib
This commit is contained in:
parent
4d743c5e67
commit
d404901583
3 changed files with 200 additions and 117 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue