This method returns a promise object, which can be in one of the following states:
Resolve - confirms that the user is logged into the Pega 7 Platform.
Reject - returns a JSON object with an error, as described below, to denote that it is impossible to check if the user is logged in or the user is not logged into the Pega 7 Platform.
{ "name": error_code "message": detailed_message }
Where error_code
stands for one of the following error codes:
"AuthenticationInvalidCredentialsError," "AuthenticationEntryAlreadyExistsError,"
"AuthenticationEntryDoesNotExistError," "AuthenticationInternalError,"
"AuthenticationInvalidInputDataError," "AuthenticationNetworkError,"
"AuthenticationUnexpectedServerResponseError," "AuthenticationWrongClientVersionError," and
detailed_message
can be an additional message from the native
side.