Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x | export const STATE_KEY = '@tech/auth'; // We use this value to compare against the last request timesamp export const INACTIVITY_TIMEOUT = 600 * 1000; // Persistancy // iOS app copy @every startup to NSUserDefaults from 21.1 export const PERSIST_USER_KEY = '@ch.gma.gmapp.auth.username'; // iOS app migrates it to keychain from 21.1 export const PERSIST_RSAKEY_KEY = '@ch.gma.gmapp.auth.x509.key'; export const PERSIST_CRT_KEY = '@ch.gma.gmapp.auth.x509.crt'; // Auth state (state transfer from remote + local state values) // activation export const AUTH_STATE_SENT = 'SENT'; // activation code sent export const AUTH_STATE_OK = 'OK'; // activation challenge succeeded export const AUTH_STATE_ACTIVATION_KO = 'ACTIVATION_KO'; // activation challenge failed export const AUTH_STATE_REACTIVATED = 'REACTIVATED'; // authentication & authorization export const AUTH_STATE_SUCCESS = 'AUTHENTICATION_SUCCESS'; export const AUTH_STATE_AWAITING_PASSWD = 'AWAITING_NEW_PASSWORD'; export const AUTH_STATE_UNAUTHORIZED = 'UNAUTHORIZED'; // unblock (new password) export const AUTH_STATE_UNBLOCK_CHALLENGE_SENT = 'UNBLOCK_CHALLENGE_SENT'; export const AUTH_STATE_UNBLOCKED = 'UNBLOCKED'; // Auth actions export const PREPARE = `${STATE_KEY}/prepare-activation`; export const ACTIVATE = `${STATE_KEY}/activate`; export const DEACTIVATE = `${STATE_KEY}/deactivate`; export const AUTHENTICATE = `${STATE_KEY}/authenticate`; export const UNBLOCK = `${STATE_KEY}/unblock`; export const LOGOUT = `${STATE_KEY}/logout`; export const RECLAIM_AUTHORIZATION = `${STATE_KEY}/reclaim-auth`; export const SET_AUTH_USERNAME = `${STATE_KEY}/set-auth-username`; export const SET_AUTH_PASSWORD = `${STATE_KEY}/set-auth-password`; export const SET_AUTH_OTP = `${STATE_KEY}/set-auth-otp`; export const SET_AUTH_ACTIVATED = `${STATE_KEY}/set-auth-activated`; export const SET_AUTH_BIOMETRY_ENABLED = `${STATE_KEY}/set-auth-biometry-enabled`; export const SET_AUTH_UUID = `${STATE_KEY}/set-auth-uuid`; export const SET_AUTH_LOADING = `${STATE_KEY}/set-auth-loading`; export const SET_AUTH_STATE = `${STATE_KEY}/set-auth-state`; export const SET_AUTH_ERROR = `${STATE_KEY}/set-auth-error`; export const SET_ACCESS_TOKEN = `${STATE_KEY}/set-auth-access-token`; |