code: def get_auth_token(self, user):
          
          data = [str(user.id),
                  self.security.hashing_context.hash(encode_string(user._password))]
          return self.security.remember_token_serializer.dumps(data)
docs: Returns the user's authentication token.