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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.sveltesrc/lib/auth.tsLatest merge fixed issue