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
1.0 KiB
1.0 KiB