H-BAHDON / class-of-our-own

At Code Your Future, trainee progress is tracked on a trainee tracker against milestones set by the Director of Education. But each trainee at CYF is on their own personal journey towards employment, and should really set their own milestones on their own roadmap.
MIT License
2 stars 1 forks source link

[US-1] Save retrieved user information to DB #40

Closed alexeyschepin closed 11 months ago

alexeyschepin commented 11 months ago

Passport.js strategy has a callback function that is invoked after successful GitHub authentication. Inside this function create a new Users record with retrieved profile information from GitHub. Create a new record only if a user with the same email does not exist yet. Don't forget to pass a new or an existing user to done function.

Acceptance criteria