This module contains functions for authenticating users using passport
Requires
- module:../models/user.models
- module:../utils/config
- module:passport-google-oidc
- module:passport-github
- module:uuid
Members
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
|
User object
Object