Skip to content

Auth multi method - #43

Merged
Hammad69275 merged 2 commits into
mainfrom
auth-multi-method
Jul 29, 2026
Merged

Hammad69275 merged 2 commits into
mainfrom
auth-multi-method

Conversation

@Hammad69275

Copy link
Copy Markdown
Contributor

No description provided.

Link multiple OAuth providers, add passkeys to an existing account, and set a
password on a passwordless account. All additive and hook-gated, so
single-provider consumers are unaffected.

- oAuthLogin resolves any linked provider via resolveOAuthAccount (drops the
  single-scalar guard when the hook is present); new oAuthLink / oAuthUnlink.
- passkey.addOptions / addVerify / list / remove for a signed-in account.
- setPassword for passwordless accounts.
- countLoginMethods / assertKeepsLoginMethod / resolveLoginMethods exported;
  every unlink/remove keeps at least one method.
- Reference Passkey + OAuthAccount models in both schemas; README documented.

See .changeset/multi-method-auth.md.
@Hammad69275
Hammad69275 merged commit 2315a43 into main Jul 29, 2026
1 check passed
@Hammad69275
Hammad69275 deleted the auth-multi-method branch July 29, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant