(20241205) Accepting many token ids to list mails.
This commit is contained in:
@@ -121,7 +121,7 @@ def init(blueprint_setup_state):
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@mail_list_bp.route("/list/id/token", methods = ["GET"])
|
||||
@mail_list_bp.route("/list/id/token", methods = ["GET", "POST"])
|
||||
@set_api_version(api_version = "1.0.0")
|
||||
@read_input(sanitize_headers = False, sanitize_data = False)
|
||||
@get_session_info(key = "X-Session-Token", session_coro = "get_session")
|
||||
|
||||
@@ -211,7 +211,7 @@ async def handle_gmail_callback() -> render_template:
|
||||
mongo_conn = current_app.data_mongo,
|
||||
session_token = g.inbound_headers.get("X-Session-Token"),
|
||||
token_id = g.inbound_data["state"],
|
||||
client_user_id = {"email": tokens.email},
|
||||
client_user_id = tokens.client_user_id,
|
||||
token = tokens.model_dump()
|
||||
)
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ async def request_oauth_authorization_url(
|
||||
client_user_id = {
|
||||
"userId": inbound_data.auth.userId,
|
||||
"senderId": inbound_data.auth.senderId,
|
||||
"entityId": inbound_data.auth.enttiyId
|
||||
"entityId": inbound_data.auth.entityId
|
||||
},
|
||||
auth = inbound_data.auth.model_dump(),
|
||||
token = None,
|
||||
|
||||
Reference in New Issue
Block a user