mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
BREAKING: change user social login schema
This commit is contained in:
1 parent
9e935b320a
commit
81581c4635
8 files changed
+59
-32
No files matched your search
@@ -7,8 +7,8 @@ import {
|
||||
register,
|
||||
checkSession,
|
||||
logout,
|
||||
socialLogin,
|
||||
registerFromSession,
|
||||
socialLoginHandler,
|
||||
} from '../controllers/authController.js'
|
||||
import {
|
||||
checkUsernameValidators,
|
||||
@@ -49,7 +49,7 @@ if (enabledMethods.google) {
|
||||
'/google/callback',
|
||||
authenticateRateLimit,
|
||||
passport.authenticate('google'),
|
||||
socialLogin
|
||||
socialLoginHandler
|
||||
)
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ if (enabledMethods.github) {
|
||||
'/github/callback',
|
||||
authenticateRateLimit,
|
||||
passport.authenticate('github'),
|
||||
socialLogin
|
||||
socialLoginHandler
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user