Skip to content

feat: Clear user on login#15

Merged
bepo00 merged 3 commits into
mainfrom
clear-user-on-login
Feb 8, 2026
Merged

feat: Clear user on login#15
bepo00 merged 3 commits into
mainfrom
clear-user-on-login

Conversation

@askoura
Copy link
Copy Markdown
Collaborator

@askoura askoura commented Feb 1, 2026

With Claude code... but I own every line

Comment on lines -36 to -40
val isUrlValid =
_loginState.value.selection != EnvSelection.PRIVATE || isValidUrl(trimmedUrl)
if (_loginState.value.selection == EnvSelection.PRIVATE && isUrlValid) {
sessionManager.saveEnv(BackendEnvironment.Private(trimmedUrl))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont saveEnv therefore we try to login with http://this-will-be-intercepted

Comment on lines +36 to +48
private fun checkForPreviousSession() {
if (sessionManager.hasPreviousSession()) {
_loginState.update {
it.copy(
previousSession = PreviousSessionInfo(
userName = sessionManager.getPreviousUserName(),
environment = sessionManager.getPreviousEnv()
),
showSessionConflictDialog = true
)
}
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is triggered also immediatelly after logging out. Doesnt feel right

@bepo00 bepo00 merged commit 2f78bcf into main Feb 8, 2026
1 check passed
@askoura askoura deleted the clear-user-on-login branch June 2, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants