Module

Passport Utilities

This module contains functions for authenticating users using passport

View Source API/src/utils/passport.js, line 1

Requires

  • module:../models/user.models
  • module:../utils/config
  • module:passport-google-oidc
  • module:passport-github
  • module:uuid

Members

# inner constant githubStrategy

This function creates a new user if the user does not exist

View Source API/src/utils/passport.js, line 109

# inner constant googleStrategy

This function creates a new user if the user does not exist

View Source API/src/utils/passport.js, line 73

Methods

# async inner createUser(data) → {Object}

This function creates a new user if the user does not exist

Parameters:
Name Type Description
data Object
firstname string
lastname string
email string
googleId string
role string
password string
passwordConfirm string
isVerified boolean

View Source API/src/utils/passport.js, line 43

User object

Object