code: def get_id(self):
          
  
          # This function is used by Flask-Login to store a User ID securely as a browser cookie.
          # The last part of the password is included to invalidate tokens when password change.
          # user_id and password_ends_with are encrypted, timestamped and signed.
          # This function works in tandem with UserMixin.get_user_by_token()
          user_manager = current_app.user_manager
  
          user_id = self.id
          password_ends_with = '' if user_manager.USER_ENABLE_AUTH0 else self.password[-8:]
          user_token = user_manager.generate_token(
              user_id,               # User ID
              password_ends_with,    # Last 8 characters of user password
          )
          # print("UserMixin.get_id: ID:", self.id, "token:", user_token)
          return user_token
docs: Converts a User ID and parts of a User password hash to a token.