Skip to content

SteampunkWhales/secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appbrew Secrets project

Some problems I encountered while coding with this unit that are not covered in the videos:

Project Specific problems

  • findOrCreate is no longer functioning
  • the user object couldn't access the email info

Nonspecifc problems

  • mongoose no longer accepts callback functions
  • mongoose uses async functions

I was able to solve these problems by reading the documentation for Mongoose, passport, and the passport Oauth module.
Lines 70 - 98 are my solution for the findOrCreate module
line 198 solves the email scope problem
This Mongoose documentation page was the most helpful with understanding the new async syntax.

Hopefully this is helpful for somebody else struggling with the class :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published