main
Last change
on this file since 22367db was 22367db, checked in by anastasovv <simon@…>, 2 years ago |
Added authentication with google
|
-
Property mode
set to
100644
|
File size:
327 bytes
|
Line | |
---|
1 | import NextAuth from 'next-auth'
|
---|
2 | import GoogleProvider from 'next-auth/providers/google'
|
---|
3 |
|
---|
4 | export default NextAuth({
|
---|
5 | providers: [
|
---|
6 | GoogleProvider({
|
---|
7 | clientId: process.env.GOOGLE_CLIENT_ID,
|
---|
8 | clientSecret: process.env.GOOGLE_CLIENT_SECRET
|
---|
9 | })
|
---|
10 | ],
|
---|
11 | secret: process.env.NEXT_SECRET,
|
---|
12 | })
|
---|
Note:
See
TracBrowser
for help on using the repository browser.