mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
23
server/auth/google/index.js
Normal file
23
server/auth/google/index.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
import express from 'express';
|
||||
import passport from 'passport';
|
||||
import {setTokenCookie} from '../auth.service';
|
||||
|
||||
var router = express.Router();
|
||||
|
||||
router
|
||||
.get('/', passport.authenticate('google', {
|
||||
failureRedirect: '/signup',
|
||||
scope: [
|
||||
'profile',
|
||||
'email'
|
||||
],
|
||||
session: false
|
||||
}))
|
||||
.get('/callback', passport.authenticate('google', {
|
||||
failureRedirect: '/signup',
|
||||
session: false
|
||||
}), setTokenCookie);
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue