title: Understanding password reset in Nodejs and Angular
body: <p>I am trying to understand how to implement password reset / forgot implementations using AngularJS (1.x) with Nodejs backend. I've read this <a href="http://sahatyalkabov.com/how-to-implement-password-reset-in-nodejs/" rel="nofollow noreferrer">great post</a> on the backend part for Nodejs. I then read this <a href="https://stackoverflow.com/questions/33967931/how-to-implement-password-reset-in-angularjs-with-ui-router">SO post</a> related to Angular and UI Router. I then read this <a href="https://stackoverflow.com/questions/32918788/angularjs-forgot-password">SO post</a>, again related to Angular and forgot password.</p>
  
  <p><strong>Tokens</strong></p>
  
  <p>I know for authentication in Angular, it deals with tokens. It seems that there are 2 main ways to create tokens, <strong>JWT</strong> and <strong>passport-jwt</strong>. Is one better over the other?</p>
  
  <p><strong>Confused about</strong></p>
  
  <p>Password Reset and Forgot functionality, from what I've read (and hopefully understand), are mostly performed server-side with just a little bit done on client side (what is the little bit?).</p>
  
  <p>What exactly is performed on the client side when it comes to Password Reset and Forgot? What roles <em>does/would</em> AngularJS play in those 2 features? Is it possible to have AngularJS integrated somehow for those 2 features?</p>