fix(oauth2): introspect_token requires token (#35647)

https://datatracker.ietf.org/doc/html/rfc7662#section-2

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2026-01-05 19:11:12 +05:30 committed by GitHub
parent 9a774de21e
commit 27970539af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: