activescott / activescott/auth

Unlink a sign-in identity from an account

Aperta
#71 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Follow-up to #70, which added identity linking (attach an email/phone to the signed-in account) and account merge. Unlinking — removing a sign-in method from the profile — was left out of that issue's scope.

## Requirements

- A signed-in user can remove one of their identities (email, phone; passkeys already have their own lifecycle via the identity rows).
- **Last-identity guard**: refuse to remove the only remaining identity so a user cannot strand their account with no way to sign in. Decide whether passkey identities count toward "remaining" (a passkey-only account is usable, but losing the device strands it).
- Probably requires a fresh session or re-verification for removing high-value identifiers, mirroring the caution in the linking flow.
- `IdentityStore.delete` already exists (optional) as the storage primitive.
- Adapter/UI: a remove action on the sign-in methods list the example app's dashboard now renders.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.