Add mobile core: API client, auth, storage, state, and offline support
Keychain token storage, Axios client with async token injection, Cognito
PKCE auth via react-native-app-auth, Redux auth slice, TanStack Query
config, offline draft queue with NetInfo auto-submit, and SHOC theme.
2026-05-17 15:09:23 -04:00
|
|
|
const Config = {
|
|
|
|
|
API_URL: __DEV__
|
|
|
|
|
? 'http://localhost:5000/api'
|
|
|
|
|
: 'https://api.proposals.seahaven.com/api',
|
2026-05-20 11:36:51 -04:00
|
|
|
COGNITO_DOMAIN: 'proposal-system-seahaven.auth.us-east-1.amazoncognito.com',
|
|
|
|
|
COGNITO_CLIENT_ID: '3egjbljml6o9qg3q155t784018',
|
|
|
|
|
COGNITO_USER_POOL_ID: 'us-east-1_DfWcl2q5z',
|
Add mobile core: API client, auth, storage, state, and offline support
Keychain token storage, Axios client with async token injection, Cognito
PKCE auth via react-native-app-auth, Redux auth slice, TanStack Query
config, offline draft queue with NetInfo auto-submit, and SHOC theme.
2026-05-17 15:09:23 -04:00
|
|
|
COGNITO_REDIRECT_URI: 'com.seahavenind.proposals://auth/callback',
|
|
|
|
|
COGNITO_SCOPES: ['openid', 'email', 'profile'],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Config;
|