getCredentials

abstract suspend fun getCredentials(apiErrorSubStatus: String? = null): AuthResult<Credentials>

Retrieves the current user's credentials, ensuring they are valid and up to date.

Return

AuthResult containing either Credentials or one of the following errors: RetryableError: If updating credentials fails but can be retried. IllegalConfigurationError If the configuration prevents creating valid credentials.

Parameters

apiErrorSubStatus

Optional parameter indicating a TIDAL-specific error condition.