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