export const DEFAULT_TIMEOUT = 5 * 60;
export const DEFAULT_WINDOW_TIMEOUT = 30 * 60;
export const BLOCKLET_SERVICE_PATH_PREFIX = '/.well-known/service';
export const SESSION_TOKEN_STORAGE_KEY = 'login_token';
export const CSRF_TOKEN_STORAGE_KEY = 'x-csrf-token';
export const REFRESH_TOKEN_STORAGE_KEY = 'refresh_token';

export const RELAY_SOCKET_PREFIX = '/.well-known/service';
export const API_DID_PREFIX = '/api/did';

export const DEFAULT_NAME = 'DID Connect';

export const DID_CONNECT_URL_PARAMS_NAME = '__did-connect__';

export const BUSY_STATUS = ['scanned', 'succeed', 'error', 'busy'];
export const EXT_DOWNLOAD_URL = {
  chrome: 'https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp',
  edge: 'https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd',
};

export const CHECK_STATUS_INTERVAL = 2 * 1000;
export const VERIFY_CODE_LENGTH = 6;

export const LANG_COOKIE_NAME = 'nf_lang';
export const CHECK_INTERVAL_TIME = 1000;

export const DID_SPACES_BASE_URL = window?.blocklet?.DID_SPACES_BASE_URL || 'https://www.didspaces.com/app';
