Verifies if the user is logged in to the Pega Platform instance (in the basic mode) or if the access token is still valid (in oauth2 mode).
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 Platform or the access token is still valid.
Reject - returns an object that is an instance of a generic Error
class, as described below.
{ "name": error_code "message": detailed_message }
Where error_code
stands for one of the error codes described in the
Constants section of the Authentication article and
detailed_message
can be an additional message from the native
side.