def api_admin_generate_token(self): method, name, key = Advanced_API.getAuth() return db.generateBearer(name)
def request_token(self): return jsonify({"token": db.generateBearer(current_user.id)})