LogoutDataSource

internal class LogoutDataSource(logoutApi: <Error class: unknown class>, metadataDAO: <Error class: unknown class>) : LogoutRepository

Constructors

Link copied to clipboard
constructor(logoutApi: <Error class: unknown class>, metadataDAO: <Error class: unknown class>)

Functions

Link copied to clipboard
open suspend override fun clearClientRelatedLocalMetadata()

Clears all client related local metadata.

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

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

Link copied to clipboard
open suspend override fun observeLogout(): <Error class: unknown class><<Error class: unknown class>>

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

Link copied to clipboard
open suspend override fun onLogout(reason: <Error class: unknown class>): <Error class: unknown class>

Propagates the logout event and reason, listenable through observeLogout