Module: controller/google

Requires

Members

(inner) checkForDupe :User

Performs a query to the database to see if the user already exists. If the user does not already exist, create a new one and store it within their session data. Otherwise, do not create a new user, but still put the user data into the session.
Type:
  • User
Source:

Methods

(async, inner) create_google_user(req, res)

A controller for creating users who registered with google oauth.
Parameters:
Name Type Description
req request The request should contain a google object that has all of the relevant information to create a new user.
res response After the successful creation of a user, the response should redirect the user to their newly created fridge/pantry.
Author:
  • Tyler Del Rosario
Source: