Download next.js/examples/auth/auth.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/auth/auth.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/auth/auth.ts
-
curl -L -o auth.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/auth/auth.ts
197 Bytes
| import NextAuth from "next-auth"; | |
| import GitHub from "next-auth/providers/github"; | |
| export const { | |
| handlers: { GET, POST }, | |
| auth, | |
| signIn, | |
| signOut, | |
| } = NextAuth({ | |
| providers: [GitHub], | |
| }); | |