verdnatura-chat/app/constants/credentials.js

12 lines
682 B
JavaScript
Raw Normal View History

2019-09-18 14:34:51 +00:00
// This file hosts the constants with the values used on native apps (User Defaults on iOS and Shared Preferences on Android).
2019-09-23 19:53:30 +00:00
import { isIOS } from '../utils/deviceInfo';
2019-09-23 19:53:30 +00:00
export const IDENTIFIER = isIOS ? 'group.ios.chat.rocket' : 'rocket.chat';
export const SERVERS = isIOS ? 'kServers' : 'ACCOUNTS_KEY';
export const TOKEN = isIOS ? 'kAuthToken' : 'authToken';
export const USER_ID = isIOS ? 'kUserId' : 'userId';
export const SERVER_URL = isIOS ? 'kAuthServerURL' : 'serverUrl';
export const SERVER_NAME = isIOS ? 'kServerName' : 'serverName';
export const SERVER_ICON = isIOS ? 'kServerIconURL' : 'serverLogoUrl';
2019-09-23 19:53:30 +00:00
export const ANDROID_PACKAGE_CONTEXT = 'chat.rocket.android';