Skip to content

Submitting token again - #39

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

Submitting token again#39
drewferris wants to merge 65 commits into
sea-401d5-javascript:masterfrom
drewferris:submitting-token-again

Conversation

@drewferris

Copy link
Copy Markdown

added the generator you told me about

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

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.

Good Job!

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