Skip to content

User cannot log back in after logout - persistent "invalid token" error #1

@sasha7partner-commits

Description

@sasha7partner-commits

Bug Description:
After clicking the "Logout" button in the Zentrun application, users are unable to log back into their accounts. The application continuously displays an "invalid token" error message regardless of entering correct credentials.

Steps to Reproduce:

Open the Zentrun application
Click the "Logout" button from the user profile/account section
Attempt to log back in with valid credentials
Observe the persistent "invalid token" error message
Expected Behavior:
Users should be able to successfully authenticate and access their accounts after logging out, using their correct credentials.

Actual Behavior:
The application rejects login attempts with an "invalid token" error message, making the application unusable after logout. This occurs even with correct credentials and persists through application restarts.

Additional Information:

Password reset functionality does not resolve the issue
Local application data files contain user information (email, JWT token, appTokenCode) but the application fails to validate them properly after logout
No way to clear the invalid token state without reinstalling the application
This effectively locks users out of their accounts permanently after a single logout
System Information:

OS: Windows 10
Zentrun version: 0.0.1
Impact:
Critical - This bug completely blocks user access to the application after logout, potentially causing data loss and preventing access to created automations. Users are effectively locked out of their accounts with no recovery path.

Suggested Solutions:

Implement proper token validation and refresh mechanisms after logout
Add a "Clear all sessions" option in the login interface for recovery scenarios
Improve error handling to automatically clear invalid tokens and allow fresh login attempts
Provide a local recovery mechanism that doesn't depend on server-side token validation
This bug severely impacts user experience and trust in the application's authentication system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions