-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vijayendher Gatla
authored and
Vijayendher Gatla
committed
Sep 4, 2023
1 parent
d67c57f
commit d3e59a7
Showing
21 changed files
with
989 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import NextAuth from "next-auth" | ||
import GoogleProvider from 'next-auth/providers/google' | ||
|
||
const handler = NextAuth({ | ||
providers:[ | ||
GoogleProvider({ | ||
clientId:process.env.GOOGLE_CLIENT_ID, | ||
clientSecret:process.env.GOOGLE_CLIENT_SECRET, | ||
}), | ||
] | ||
}) | ||
|
||
export { handler as GET, handler as POST } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"use client"; | ||
import { SessionProvider } from "next-auth/react"; | ||
|
||
export default function PostLayout({ | ||
children, // will be a page or nested layout | ||
}) { | ||
return <SessionProvider>{children}</SessionProvider>; | ||
} |
Oops, something went wrong.