File size: 347 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
// @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;
|