Header not updating on login/logout #5

Closed
opened 2024-10-15 18:17:06 +00:00 by Kessinen · 1 comment
Owner

The header component is not updating correctly when a user logs in or out. Specifically, the username and login/logout link are not being updated to reflect the user's current authentication state.

Steps to reproduce:

Log in to the application
Observe the header component
Log out of the application
Observe the header component again

Expected behavior:

The header component should update to reflect the user's current authentication state. When logged in, the username should be displayed and the login link should be replaced with a logout link. When logged out, the username should be removed and the logout link should be replaced with a login link.

Actual behavior:

The header component does not update correctly. The username and login/logout link remain the same even after logging in or out.

Related code:

  • src/components/Header.svelte
  • src/lib/auth.ts
The header component is not updating correctly when a user logs in or out. Specifically, the username and login/logout link are not being updated to reflect the user's current authentication state. ## Steps to reproduce: Log in to the application Observe the header component Log out of the application Observe the header component again ## Expected behavior: The header component should update to reflect the user's current authentication state. When logged in, the username should be displayed and the login link should be replaced with a logout link. When logged out, the username should be removed and the logout link should be replaced with a login link. ## Actual behavior: The header component does not update correctly. The username and login/logout link remain the same even after logging in or out. Related code: - `src/components/Header.svelte` - `src/lib/auth.ts`
Kessinen added this to the Release v1.0 milestone 2024-10-15 18:17:06 +00:00
Kessinen added the bug label 2024-10-15 18:17:06 +00:00
Kessinen self-assigned this 2024-10-15 18:17:06 +00:00
Author
Owner

Latest merge fixed issue

Latest merge fixed issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Kessinen/LevyraatiRevived#5