Make auth-ui's profile login more resilient to invalid cookies.

This commit is contained in:
Sebastian Jeltsch 2026-04-14 10:28:03 +02:00
parent 4dc6ce0b90
commit d4cd85dd73
2 changed files with 2 additions and 1 deletions

View file

@ -262,9 +262,10 @@ export function Profile() {
</Match>
<Match when={client()?.user() === undefined}>
{/* NOTE: We're double redirecting via logout. This is more robust in case there are some lingering invalid cookies */}
<a
class={buttonVariants({ variant: "default" })}
href="/_/auth/login"
href="/_/auth/logout"
>
Login
</a>