You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 626B

12345678910111213141516171819202122232425
  1. // @flow
  2. import JitsiMeetJS from '../../../react/features/base/lib-jitsi-meet';
  3. /**
  4. * Checks if the token for authentication is available.
  5. *
  6. * @param {Object} config - Configuration state object from store.
  7. * @returns {boolean}
  8. */
  9. export const isTokenAuthEnabled = (config: Object) =>
  10. typeof config.tokenAuthUrl === 'string'
  11. && config.tokenAuthUrl.length;
  12. /**
  13. * Token url.
  14. *
  15. * @param {Object} config - Configuration state object from store.
  16. * @returns {string}
  17. */
  18. export const getTokenAuthUrl = (config: Object) =>
  19. JitsiMeetJS.util.AuthUtil.getTokenAuthUrl.bind(null,
  20. config.tokenAuthUrl);