mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
resp.json() could return non-dict values (null, string, list) which
would cause AttributeError on data.get("access_token"). Now checks
isinstance(data, dict) first, returning (False, None) for malformed
responses. Applied to both sync and async refresh helpers.