Skip to content

Submitting token#28

Open
drewferris wants to merge 64 commits into
sea-401d5-javascript:masterfrom
drewferris:submitting-token
Open

Submitting token#28
drewferris wants to merge 64 commits into
sea-401d5-javascript:masterfrom
drewferris:submitting-token

Conversation

@drewferris
Copy link
Copy Markdown

submitting with fixed linter

Comment thread routes/auth_routes.js
if(err || user) return next(new Error('could not create user'));
newUser.save((err) => {
if (err) return next(new Error('could not create user'));
res.json({token: 'token'});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where you should be generating a token. The rest of this is spot on, you just need to be calling the function here that you set up in your schema. Instead of responding with the string 'token'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants