From 27970539af3ba4d4cc5d3ca3593742de9abecfd5 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 5 Jan 2026 19:11:12 +0530 Subject: [PATCH] fix(oauth2): introspect_token requires `token` (#35647) https://datatracker.ietf.org/doc/html/rfc7662#section-2 Signed-off-by: Akhil Narang --- frappe/integrations/oauth2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/integrations/oauth2.py b/frappe/integrations/oauth2.py index 063bd2a3bc..de62014536 100644 --- a/frappe/integrations/oauth2.py +++ b/frappe/integrations/oauth2.py @@ -225,7 +225,7 @@ def get_openid_configuration(): @frappe.whitelist(allow_guest=True) -def introspect_token(token=None, token_type_hint=None): +def introspect_token(token: str, token_type_hint=None): if token_type_hint not in ["access_token", "refresh_token"]: token_type_hint = "access_token" try: