I'm building a web app in Node.js, Express, and Mongoose. I'm worried about security and optimization issues on what to send in the email link.
I see many of them sending: /:userId/:token
, but if I would insert in the link only the token it wouldn't be the same? I thought that because in this way userId
isn't shown in the email (more secure).