Skip to content

RestClient.IsAuthenticated

Overview

bool RestClient.IsAuthenticated { get; }
Gets the status of client currently is authenticated.

Remarks

  • This property is automatically set when service parameter is specified in $Rest.Create method or Authenticate method is called.

Examples

var client = $Rest.Create('http://targetserver');

client.Authenticate('Google', 'https://www.googleapis.com/auth/drive.readonly', $Initiator);

console.log('Authenticated : ' + client.IsAuthenticated);

Alternative sample;

var client = $Rest.Create('http://targetserver', 'Google', 'https://www.googleapis.com/auth/drive.readonly', $Initiator);

console.log('Authenticated : ' + client.IsAuthenticated);

See Also