get cloud generated public key for marketplace licenses (#14851)
parent
8c3e8bb453
commit
0bb9a522bb
@ -0,0 +1,18 @@ |
||||
import { retrieveRegistrationStatus } from './retrieveRegistrationStatus'; |
||||
import { settings } from '../../../settings'; |
||||
|
||||
export function getWorkspaceKey() { |
||||
const { connectToCloud, workspaceRegistered } = retrieveRegistrationStatus(); |
||||
|
||||
if (!connectToCloud || !workspaceRegistered) { |
||||
return false; |
||||
} |
||||
|
||||
const publicKey = settings.get('Cloud_Workspace_PublicKey'); |
||||
|
||||
if (!publicKey) { |
||||
return false; |
||||
} |
||||
|
||||
return publicKey; |
||||
} |
||||
Loading…
Reference in new issue