mirror of
https://github.com/trailbaseio/trailbase
synced 2026-04-21 13:37:44 +00:00
Make auth-ui's profile login more resilient to invalid cookies.
This commit is contained in:
parent
4dc6ce0b90
commit
d4cd85dd73
2 changed files with 2 additions and 1 deletions
Binary file not shown.
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue