db and auth packages setup
This commit is contained in:
14
packages/auth/index.ts
Normal file
14
packages/auth/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import NextAuth, { type NextAuthConfig } from "next-auth";
|
||||
import Google from "next-auth/providers/google";
|
||||
|
||||
const authConfig: NextAuthConfig = {
|
||||
providers: [Google],
|
||||
callbacks: {},
|
||||
};
|
||||
|
||||
const nextAuth = NextAuth(authConfig);
|
||||
|
||||
export const handlers: typeof nextAuth.handlers = nextAuth.handlers;
|
||||
export const signIn: typeof nextAuth.signIn = nextAuth.signIn;
|
||||
export const signOut: typeof nextAuth.signOut = nextAuth.signOut;
|
||||
export const auth: typeof nextAuth.auth = nextAuth.auth;
|
||||
20
packages/auth/package.json
Normal file
20
packages/auth/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@workspace/auth",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"lint": "eslint . --max-warnings 0"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"packageManager": "pnpm@10.4.1",
|
||||
"dependencies": {
|
||||
"next-auth": "5.0.0-beta.28"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dotenv": "^16.5.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user