@appconda/nextjs 1.0.92 → 1.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const handler: any;
1
+ export declare const getHandler: () => any;
@@ -1,3 +1,5 @@
1
1
  import NextAuth from "next-auth";
2
2
  import { authOptions } from "./authOptions";
3
- export const handler = NextAuth(authOptions());
3
+ export const getHandler = () => {
4
+ return NextAuth(authOptions());
5
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appconda/nextjs",
3
3
  "homepage": "https://appconda.io/support",
4
4
  "description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "1.0.92",
5
+ "version": "1.0.93",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -3,5 +3,7 @@
3
3
  import NextAuth from "next-auth";
4
4
  import { authOptions } from "./authOptions";
5
5
 
6
- export const handler = NextAuth(authOptions());
6
+ export const getHandler = () => {
7
+ return NextAuth(authOptions())
8
+ } ;
7
9