async
function since we need to await
the asynchronus authentication service response. Internally the login
function will cache the returned the authentication token and use it for subsequent requests. As well as it will handle re-issuing a token when the one in use expires.developer
for the SDK user