- Client: onUnauthorized hook; 401 clears the token and (in-app) bounces to sign-in - Map: "My location" uses the native UserLocation fix + flyTo; safe-area insets on the floating status bar / controls - Enable edgeToEdgeEnabled (Android 15 forces it) so headers/back-arrow sit correctly - App icon: brain-car launcher + adaptive icon Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
6 lines
292 B
TypeScript
6 lines
292 B
TypeScript
/**
|
|
* Tiny bridge so the API client (created at module load) can notify the React
|
|
* auth layer when a 401 happens, without a circular import. AuthProvider
|
|
* registers a handler; the client calls it via app/src/api/client.ts.
|
|
*/
|
|
export const authBus: { onUnauthorized?: () => void } = {};
|