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.
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
After successful Github authentication a new record is created in users table.
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 todone
function.Acceptance criteria
users
table.