diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-31 14:08:34 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-31 14:08:34 +0700 |
| commit | 4d021a4634a6bc84ee25f0d43cbc6450d94265f0 (patch) | |
| tree | ee54bf52a3b11dabe52a746d5c0c4110232eef8e /src/pages/api | |
| parent | 8e608aecc663960a91e1f39472bfcb6ad477eab2 (diff) | |
google sing up
Diffstat (limited to 'src/pages/api')
| -rw-r--r-- | src/pages/api/auth/[...nextauth].js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js new file mode 100644 index 00000000..f1d6a31f --- /dev/null +++ b/src/pages/api/auth/[...nextauth].js @@ -0,0 +1,15 @@ +import NextAuth from "next-auth/next"; +import GoogleProvider from "next-auth/providers/google" + +export default NextAuth({ + providers:[ + GoogleProvider({ + clientId: process.env.GOOGLE_CLIENT_ID, + clientSecret: process.env.GOOGLE_CLIENT_SECRET, + }), + ], + secret:process.env.JWT_SECRET + // pages:{ + // signIn: '/login', + // } +})
\ No newline at end of file |
