title: Adding JWT to cookie at login using flask security
body: <p>Description: I'm trying to set the jwt token at login using
  <code>flask_jwt_extended.set_access_cookies</code> and <code>flask_jwt_extended.set_refresh_cookies</code> but the issue is that I cannot set this at the <code>/login</code> endpoint because that is auto created by flask-security. What would be the best way to do this? Would the best way to do this be overriding the <code>/login</code> endpoint and set them there? Or can this be done in the <code>validate</code> method of <code>ExtendedLoginForm</code> even though I would need to add it to a request and not the <code>True</code> or <code>False</code> value that validate requires be returned?</p>
  <p>End Result: Use regular cookies (to authenticate) to interact with flask related endpoints. Use JWT tokens (encoded in a cookie) to interact with a react-native compiled code.</p>