CredentialsProvider

Provides functionality to retrieve and manage user credentials. This interface defines the contract for credential operations within the library.

Properties

Link copied to clipboard
abstract val bus: Flow<TidalMessage>

The default bus is used for all asynchronous communication by the Auth module. Subscribe to this Flow to receive CredentialsUpdatedMessage

Functions

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

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

Link copied to clipboard
abstract fun isUserLoggedIn(): Boolean

Convenience function to quickly check if a user is logged in.