diff options
| author | Dhravya <[email protected]> | 2024-02-21 16:11:35 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-02-21 16:11:35 -0700 |
| commit | cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526 (patch) | |
| tree | e0234f7fff63b312f18c945bed37a430d1e68755 /apps/web/src/app/api/auth | |
| download | supermemory-cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526.tar.xz supermemory-cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526.zip | |
initialised monorepo with auth and extension communication
Diffstat (limited to 'apps/web/src/app/api/auth')
| -rw-r--r-- | apps/web/src/app/api/auth/[...nextauth]/route.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/web/src/app/api/auth/[...nextauth]/route.ts b/apps/web/src/app/api/auth/[...nextauth]/route.ts new file mode 100644 index 00000000..1570f886 --- /dev/null +++ b/apps/web/src/app/api/auth/[...nextauth]/route.ts @@ -0,0 +1,7 @@ +import NextAuth from "next-auth"; + +import { authOptions } from "@/server/auth"; + +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment +const handler = NextAuth(authOptions); +export { handler as GET, handler as POST }; |