pub fn default_credentials() -> Result<Arc<dyn Credentials>, Error>Expand description
The first credentials found, in this order:
ORIGINCLOUD_ACCESS_TOKEN: an access token, sent as it is.ORIGINCLOUD_CLIENT_IDandORIGINCLOUD_CLIENT_SECRET: a service account’s credential, exchanged for access tokens as they expire. Only one of the two set is an error.- The session the
originCLI stored at its last login (origin id login).
It fails with Error::NoCredentials when there are none.