Example #1
0
  def api_admin_generate_token(self):
    method, name, key =   Advanced_API.getAuth()

    return db.generateBearer(name)
Example #2
0
 def request_token(self):
     return jsonify({"token": db.generateBearer(current_user.id)})