Skip to content

Commit cf09edc

Browse files
author
topstar210
committed
remove google login
1 parent b62a704 commit cf09edc

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.env.sample

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ EMAIL_SERVER_USER=
1414
EMAIL_SERVER_PASSWORD=
1515
EMAIL_FROM=
1616

17-
AUTH_GOOGLE_ID=
18-
AUTH_GOOGLE_SECRET=

app/(auth)/login/Form.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ const Form = () => {
110110
Log in
111111
</span>
112112
</button>
113-
<p
113+
{/* <p
114114
className={`py-6 text-[#707a8a] text-center ${styles.login_continue}`}
115115
>
116116
<span className="mr-1 "> Or</span>
117-
</p>
117+
</p> */}
118118
</div>
119-
<div className="flex w-full justify-center px-2 text-lg items-center">
119+
{/* <div className="flex w-full justify-center px-2 text-lg items-center">
120120
<GoogleButton />
121-
</div>
121+
</div> */}
122122
{error && (
123123
<small className="block w-full px-2 text-red-600">{error}</small>
124124
)}

utilities/auth.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import NextAuth from "next-auth";
22
import type { NextAuthOptions } from "next-auth";
33
import { MongoDBAdapter } from "@next-auth/mongodb-adapter";
4-
import GoogleProvider from "next-auth/providers/google";
54
import CredentialsProvider from "next-auth/providers/credentials";
65
import EmailProvider from "next-auth/providers/email"
76
import dbConnect from "./dbConnect";
@@ -17,10 +16,6 @@ export const authOptions: NextAuthOptions = {
1716
secret: process.env.NEXTAUTH_SECRET!,
1817
// Configure one or more authentication providers
1918
providers: [
20-
GoogleProvider({
21-
clientId: process.env.AUTH_GOOGLE_ID!,
22-
clientSecret: process.env.AUTH_GOOGLE_SECRET!,
23-
}),
2419
// ...add more providers here
2520
CredentialsProvider({
2621
name: "Credentials",

0 commit comments

Comments
 (0)