Skip to content

Studio sign-in: passkeys with autofill (RFC first); several signed-in accounts later #395

Backlog

Description

@Madraka

Follow-up to #388. Steps 1–3 shipped in 0.12.0:

These two steps remain. The research behind them is in #388.

1. Passkeys with autofill (needs an RFC first)

  • Better Auth's passkey plugin with signIn.passkey({ autoFill: true }). The browser offers the account, and there is no password to type. This is the modern form of the "last used account".
  • The sign-in field's hint becomes username webauthn.
  • last-login-method becomes useful then: a "last used" badge on the method.
  • Why an RFC: the plugin needs new tables, which is a contract and migration change.
  • The RFC should cover:
    • registering a passkey from AccountPage, and listing and removing passkeys there;
    • a passkey as the only factor, or as a second one next to the password;
    • recovery when the passkey is lost;
    • the playground, which has no sign-in (RFC-0036 §5);
    • self-host origins: the RP ID comes from the Studio origin;
    • the MCP OAuth sign-in page (RFC-0044).

2. Several signed-in accounts (multi-session), deferred

Revisit when one Studio serves several organizations (the hosted Cloud). Until then, one organization per deployment (RFC-0005 §11) makes it rare. The work then needs:

  • a reload across tabs on switch (BroadcastChannel). Studio caches the session for 5 min and the API for 60 s, so another tab would show account A while writing as account B;
  • per-account Remove next to "Sign out of all accounts";
  • an audit review: the right author and role on every write.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions