Methods
(static) checkCloudCookie() → {string}
retrieve the cloud login status via cookie
- Source:
Returns:
string determining login status
- Type
- string
(async, static) checkCloudDocsAPI() → {string}
retrieve the cloud login status via api
- Source:
Returns:
string determining login status
- Type
- string
(async, static) getUserStatus() → {Promise.<any>}
Returns user status (authenticated or unauthenticated)
- Source:
Returns:
User status
- Type
- Promise.<any>
Example
import { ProfileAPI } from '@carbon/ibmdotcom-services';
async function getUserStatus() {
const response = await ProfileAPI.getUserStatus();
return response;
}