async function obtainPublicKeys() {
  // Your App ID instance tenant ID
  const tenantId = '<TENENT-ID>';

  // Send request to App ID's public keys endpoint
  const keysOptions = {
    method: 'GET',
    url: `https://appid-oauth.<REGION>.bluemix.net/oauth/v3/${tenantId}/publickeys`
  };
  const keysResponse = await request(keysOptions);
  return JSON.parse(keysResponse.body).keys;
}
/**
 *
 * This function obtains public keys for your App ID instance,
 * for best performance - the result should be cached.
 *
 * @return The public keys for your App ID instance.
 *
 */
This function obtains public keys for your App ID instance,
for best performance - the result should be cached.

@return The public keys for your App ID instance.
This function obtains public keys for your App ID instance for best performance - the result should be cached . @return The public keys for your App ID instance .
async function obtainPublicKeys() {
  const tenantId = '<TENENT-ID>';
  const keysOptions = {
    method: 'GET',
    url: `https://appid-oauth.<REGION>.bluemix.net/oauth/v3/${tenantId}/publickeys`
  };
  const keysResponse = await request(keysOptions);
  return JSON.parse(keysResponse.body).keys;
}
async function obtainPublicKeys ( ) { const tenantId = '<TENENT-ID>' ; const keysOptions = { method : 'GET' , url : ` ${ tenantId } ` } ; const keysResponse = await request ( keysOptions ) ; return JSON . parse ( keysResponse . body ) . keys ; }
This function obtains public keys for your App ID instance,
 for best performance - the result should be cached.
This function obtains public keys for your App ID instance for best performance - the result should be cached .
// Your App ID instance tenant ID // Send request to App ID's public keys endpoint