-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
15 changed files
with
302 additions
and
272 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import NextAuth from "next-auth" | ||
import { authOptions } from "./options" | ||
import NextAuth from 'next-auth'; | ||
import { authOptions } from './options'; | ||
|
||
|
||
const handler = NextAuth(authOptions) | ||
export { handler as GET, handler as POST } | ||
const handler = NextAuth(authOptions); | ||
export { handler as GET, handler as POST }; |
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
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
"use client"; | ||
'use client'; | ||
|
||
import { Session } from "next-auth"; | ||
import { SessionProvider } from "next-auth/react"; | ||
import { Session } from 'next-auth'; | ||
import { SessionProvider } from 'next-auth/react'; | ||
|
||
interface ProviderProps { | ||
children: React.ReactNode; | ||
session?: Session | null; | ||
} | ||
|
||
const Provider: React.FC<ProviderProps> = ({ children, session }) => ( | ||
<SessionProvider session={session}> | ||
{children} | ||
</SessionProvider> | ||
); | ||
|
||
export default Provider; | ||
children: React.ReactNode; | ||
session?: Session | null; | ||
} | ||
|
||
const Provider: React.FC<ProviderProps> = ({ children, session }) => ( | ||
<SessionProvider session={session}>{children}</SessionProvider> | ||
); | ||
|
||
export default Provider; |
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
Oops, something went wrong.