Files
hassio-integration-perfectd…/..credentials.json.swp
T
rick e6f5af9771 APK analysis: map full API surface and discover refresh endpoint
Decompiled PerfectDraft APK (Expo/React Native + Hermes bytecode).
Key discoveries:

API has TWO auth systems:
- /authentication/sign-in (Cognito + Lambda trigger) — old
- /auth/signin (.NET backend) — new, same reCAPTCHA gate

Critical find: /auth/renewaccesstokens accepts POST with
{UserId, RefreshToken} and does NOT require reCAPTCHA.

Full API surface discovered:
- /auth/signin, /auth/renewaccesstokens, /auth/signout
- /auth/changepassword, /auth/confirmsignup
- /api/perfectdraft_machines/, /api/perfectdraft_machines/{id}
- /api/perfectdraft_machine_kegs
- /api/pda_machines/add
- /api/countries, /api/customer_product_ratings

reCAPTCHA is Android Enterprise key — cannot generate valid
high-score tokens from any non-Android context. Both /auth/signin
and /authentication/sign-in require it. But refresh does not.

Strategy: one-time token capture, then refresh forever.
Made-with: Cursor
2026-04-12 05:14:26 +02:00

1.0 KiB