Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit 1342dae

Browse files
committed
lint
1 parent 57a3c59 commit 1342dae

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/passport.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export default function configurePassport(uw, options) {
1818
});
1919
}
2020

21+
async function googleLogin(accessToken, refreshToken, profile) {
22+
return socialLogin(accessToken, refreshToken, {
23+
id: profile.id,
24+
photos: profile.photos,
25+
});
26+
}
27+
2128
async function serializeUser(user) {
2229
return user.id;
2330
}
@@ -32,13 +39,6 @@ export default function configurePassport(uw, options) {
3239
}, callbackify(localLogin)));
3340

3441
if (options.auth && options.auth.google) {
35-
async function googleLogin(accessToken, refreshToken, profile) {
36-
return socialLogin(accessToken, refreshToken, {
37-
id: profile.id,
38-
photos: profile.photos
39-
});
40-
}
41-
4242
passport.use('google', new GoogleStrategy({
4343
callbackURL: '/auth/service/google/callback',
4444
...options.auth.google,

0 commit comments

Comments
 (0)