code: def get_token(self):
      header = {"alg": "HS256"}
      payload = {"id": self.id}
      return jwt.encode(
          header, payload, current_app.config["SECRET_KEY"]
      ).decode()
  
file_path: apiflask/examples/auth/token_auth/app.py
imports: import typing
  from flask import current_app
  from apiflask import APIFlask, HTTPTokenAuth, Schema, abort
  from apiflask.fields import String
  from authlib.jose import jwt, JoseError
label_desc: Use image node_id 2 for calling the User obj's underlying member method code with example usage: obj.get_token() and returns: jwt