LogoutRepository

internal interface LogoutRepository

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clearClientRelatedLocalMetadata()

Clears all client related local metadata.

Link copied to clipboard
abstract suspend fun logout(): Either<CoreFailure, Unit>

Informs the backend about the logout, invalidating the current credentials.

Link copied to clipboard
abstract suspend fun observeLogout(): Flow<LogoutReason>

Listen to a logout event. The event caries a LogoutReason.

Link copied to clipboard
abstract suspend fun onLogout(reason: LogoutReason)

Propagates the logout event and reason, listenable through observeLogout