Integrated login with Gitlab

This commit is contained in:
Andrew Atimapre
2023-09-26 02:21:27 +01:00
parent 0d74752169
commit bc489e65ca

View File

@@ -205,6 +205,7 @@ const initializePassport = async () => {
callbackURL: "/api/v1/sso/gitlab"
},
async (req : express.Request, accessToken : any, refreshToken : any, profile : any, done : any) => {
const email = profile.emails[0].value;
let user = await User.findOne({