Add SignedOutNode, to handle session behind deleted from outside (no support for soft-logout)
This commit is contained in:
parent
124d6bf95f
commit
266f93cc28
12 changed files with 479 additions and 12 deletions
|
|
@ -44,7 +44,10 @@ class DatabaseSessionStore @Inject constructor(
|
|||
if (it == null) {
|
||||
LoggedInState.NotLoggedIn
|
||||
} else {
|
||||
LoggedInState.LoggedIn((it.isTokenValid ?: 1) == 1L)
|
||||
LoggedInState.LoggedIn(
|
||||
sessionId = it.userId,
|
||||
isTokenValid = (it.isTokenValid ?: 1) == 1L
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue