Download spectrum/api/routes/auth/github.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/routes/auth/github.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/routes/auth/github.js
-
curl -L -o github.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/routes/auth/github.js
371 Bytes
| // @flow | |
| import { Router } from 'express'; | |
| import { createSigninRoutes } from './create-signin-routes'; | |
| const githubAuthRouter = Router(); | |
| const { main, callbacks } = createSigninRoutes('github', { | |
| scope: ['read:user,user:email'], | |
| state: true, | |
| }); | |
| githubAuthRouter.get('/', main); | |
| githubAuthRouter.get('/callback', ...callbacks); | |
| export default githubAuthRouter; | |