/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import GKImplementation from './fb-stubs/GK'; let loaded = false; export function getGatekeepers(username: string): Record { if (!loaded) { // this starts fetching gatekeepers, note that they will only be available on next restart! GKImplementation.init(username); loaded = true; } return GKImplementation.allGKs(); }