You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pos-app): add default merchant credentials from environment variables (#324)
* feat(pos-app): add default merchant credentials from environment variables
- Add EXPO_PUBLIC_DEFAULT_MERCHANT_ID and EXPO_PUBLIC_DEFAULT_MERCHANT_API_KEY env vars
- Initialize merchant credentials from env defaults on first app launch
- Allow users to override defaults via settings (with PIN protection)
- Reset both merchant ID and API key to defaults when clearing merchant ID
- Sync UI state after resetting to show new default values
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor(pos-app): return new merchant ID from clearMerchantId
Make the flow more explicit by returning the default merchant ID
directly from clearMerchantId instead of reading from store afterward.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(pos-app): use nullish coalescing for env var defaults
Use ?? instead of || to preserve empty string values from environment
variables instead of converting them to null.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments