강정인

modified1

......@@ -7,7 +7,7 @@ var googleLogin = false;
var kakaoLogin =false;
passport.use(new GoogleStrategy({
clientID:'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com',
clientSecret:'N7Uh_oVQZt-almzA4DkM4bm_',
clientSecret:'9ERYhDZJK-CrX3moES2z11ol',
callbackURL:'http://localhost:3000/auth/google/callback',
scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly',
'https://www.googleapis.com/auth/calendar',
......@@ -29,7 +29,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{
});
const kakaoKey = {
clientID: "18f0234f78991d20196ab12ba0583c26",
clientID: "cf6ae2286a1b022bafa454588f32878b",
callbackURL: "/oauth/callback"
};
......
......@@ -3,17 +3,24 @@
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<h1><%= title %></h1>
<p>Welcome to <%= title %></p>
<form action='/auth/google' method='GET'>
<input type="submit" name='submit' value='Google Login'/>
</form>
<form action='/kakao' method='GET'>
<input type="submit" name='submit' value='Kakao Login'/>
</form>
<div id="container">
<center>
<div id='item'><h1><font size="40">
<%= title %></h1>
</font>
</div>
<div id='item'><p><font size="5">Welcome to <%= title %></font></p></div><br>
<div id='item';">
<form action='/auth/google' method='GET';">
<input type="submit" name='submit' value='Google Login'>
</form>
</div>
<form action='/kakao' method='GET'>
<input type="submit" name='submit' value='Kakao Login'>
</form>
</center>
</div>
</body>
</html>
\ No newline at end of file
......