{"size": 322, "ext": "js", "max_stars_repo_path": "frontend/services/Auth0LockService.js", "max_stars_repo_name": "dandv/launchpad", "max_stars_repo_stars_event_min_datetime": "2018-03-26T13:12:58.000Z", "max_stars_repo_stars_event_max_datetime": "2018-03-26T13:12:58.000Z", "max_issues_repo_path": "frontend/services/Auth0LockService.js", "max_issues_repo_name": "dandv/launchpad", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/services/Auth0LockService.js", "max_forks_repo_name": "dandv/launchpad", "max_forks_repo_forks_event_min_datetime": "2021-11-26T15:30:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-26T15:30:55.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 16.1, "max_line_length": 47, "alphanum_fraction": 0.4534161491}
/* @flow */

let lock: any;

export async function getLock() {
  if (!lock) {
    await new Promise(resolve => {
      (require: any).ensure(
        ['auth0-lock'],
        () => {
          lock = require('auth0-lock').default;
          resolve();
        },
        'auth0-lock',
      );
    });
  }
  return lock;
}
