Implemented email verification
This commit is contained in:
@@ -2,23 +2,21 @@ import type { NextAuthConfig } from 'next-auth'
|
||||
import Credentials from 'next-auth/providers/credentials'
|
||||
import Google from 'next-auth/providers/google'
|
||||
import Github from 'next-auth/providers/github'
|
||||
//import Facebook from 'next-auth/providers/facebook'
|
||||
//import Twitter from 'next-auth/providers/twitter'
|
||||
import { LoginSchema } from '@/schemas'
|
||||
import bcrypt from 'bcryptjs'
|
||||
import { getUserByEmail } from '@/data/user'
|
||||
import { env } from 'process'
|
||||
import { env } from '@/lib/utils'
|
||||
|
||||
export default {
|
||||
secret: env.AUTH_SECRET,
|
||||
secret: env('AUTH_SECRET'),
|
||||
providers: [
|
||||
Google({
|
||||
clientId: env.GOOGLE_CLIENT_ID,
|
||||
clientSecret: env.GOOGLE_CLIENT_SECRET,
|
||||
clientId: env('GOOGLE_CLIENT_ID'),
|
||||
clientSecret: env('GOOGLE_CLIENT_SECRET'),
|
||||
}),
|
||||
Github({
|
||||
clientId: env.GITHUB_CLIENT_ID,
|
||||
clientSecret: env.GITHUB_CLIENT_SECRET,
|
||||
clientId: env('GITHUB_CLIENT_ID'),
|
||||
clientSecret: env('GITHUB_CLIENT_SECRET'),
|
||||
}),
|
||||
//Twitter({}),
|
||||
/*Facebook({
|
||||
|
||||
Reference in New Issue
Block a user