When logging out from Pin code screen, logout from all the sessions.
This commit is contained in:
parent
a2d728d29e
commit
be61b89bfb
6 changed files with 146 additions and 20 deletions
|
|
@ -8,16 +8,12 @@
|
|||
package io.element.android.features.logout.api
|
||||
|
||||
/**
|
||||
* Used to trigger a log out of the current user from any part of the app.
|
||||
* Used to trigger a log out of the current user(s) from any part of the app.
|
||||
*/
|
||||
interface LogoutUseCase {
|
||||
/**
|
||||
* Log out the current user and then perform any needed cleanup tasks.
|
||||
* Log out the current user(s) and then perform any needed cleanup tasks.
|
||||
* @param ignoreSdkError if true, the SDK error will be ignored and the user will be logged out anyway.
|
||||
*/
|
||||
suspend fun logout(ignoreSdkError: Boolean)
|
||||
|
||||
interface Factory {
|
||||
fun create(sessionId: String): LogoutUseCase
|
||||
}
|
||||
suspend fun logoutAll(ignoreSdkError: Boolean)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue