BigBrainParking/app
Erik 7fc92d24e4
All checks were successful
build-apk / build (push) Successful in 9m55s
v0.6.1: stop Anonymous Mode bouncing to sign-in on every foreground
Parking without an account showed "Your session expired — please sign in
again." repeatedly and kicked the user back to the login screen.

The 401 hook on the API client is global: it fires on every unauthorized
response whether or not the caller caught the error. Anonymous Mode has no
token, so any ParkSmarter call 401s, and two of them run automatically —
discoverPaidSession() on open and every foreground, and the map's
lastSessionLot() on every mount. Each one flipped the status to signedOut;
re-entering anonymous mode ran them again, hence "over and over".

Both call sites already caught their errors, which is why this hid: the
bounce came from the client hook, not from the catch.

- A 401 in Anonymous Mode is no longer treated as a session expiry. There is
  no session to expire, and bouncing to sign-in makes the mode pointless.
  This also covers the Sessions/Favorites/Scan tabs, which 401 the same way.
- authBus carries the mode to the non-React modules that need it.
- discoverPaidSession() and lastSessionLot() are skipped entirely when
  anonymous rather than fired and discarded.
- "Last lot" now says it needs an account instead of silently doing nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 04:19:12 +00:00
..
assets v0.2.1: big-brain-driver app icon 2026-07-13 20:33:15 -07:00
modules/bbp-notify v0.5.0: persistent parking notification — foreground service, End/Extend 2026-08-07 20:10:54 +00:00
plugins Fix release signing in CI: anchor plugin regex to buildTypes release block 2026-07-07 19:49:37 -07:00
src v0.6.1: stop Anonymous Mode bouncing to sign-in on every foreground 2026-08-13 04:19:12 +00:00
test v0.6.0: city parking-map overlay + local time tracking, no IPS API 2026-08-13 03:28:18 +00:00
.gitignore chore: untrack + gitignore local module gradle build output 2026-07-13 21:05:09 -07:00
app.json v0.6.1: stop Anonymous Mode bouncing to sign-in on every foreground 2026-08-13 04:19:12 +00:00
App.tsx CI: move workflow to .forgejo/workflows; self-contained Forgejo release; bump 0.1.1 2026-07-07 14:18:06 -07:00
babel.config.js Initial commit: parksmarter-client + BigBrainParking app 2026-07-06 08:33:47 -07:00
index.ts Initial commit: parksmarter-client + BigBrainParking app 2026-07-06 08:33:47 -07:00
metro.config.js Initial commit: parksmarter-client + BigBrainParking app 2026-07-06 08:33:47 -07:00
package.json v0.6.0: city parking-map overlay + local time tracking, no IPS API 2026-08-13 03:28:18 +00:00
tsconfig.json Initial commit: parksmarter-client + BigBrainParking app 2026-07-06 08:33:47 -07:00