# Close the sign-in dialog once, keep a sent reset link working, ignore links while signed in · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/d3dc0ddc275022e9efd638201684391cd6a18e1a)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: d3dc0ddc275022e9efd638201684391cd6a18e1a

Requested commit: d3dc0ddc275022e9efd638201684391cd6a18e1a

Commit: d3dc0ddc275022e9efd638201684391cd6a18e1a

Tree: 0ea3adab43cafa9ff507db3031ae092a797932c0

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Close the sign-in dialog once, keep a sent reset link working, ignore links while signed in

- The dialog now closes only when a session lands. Closing it from the
  password form too popped the route beneath when a reset link had been
  asked for first.
- A second reset request for the same address within a minute stays in
  the app: the Supabase client replaces the saved code verifier before
  the server refuses it, which broke the link already in the inbox.
- A sign-in link opened while someone is signed in is not exchanged. It
  would swap the session under the open library, possibly for another
  account, without the sign-out that keeps accounts apart. A toast says
  to sign out and ask for a new link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [df8761a9a61efdaac8824864d05d088d676b172f](https://git.cafe/dara/icarus/commit/df8761a9a61efdaac8824864d05d088d676b172f?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/d3dc0ddc275022e9efd638201684391cd6a18e1a?format=markdown)
