You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(console): email and password only for self-hosted console sign-in - #14434
A self-hosted Console signs in with email and password only. Passkeys on self-hosted are for the apps people build (the project passkey policy and the Passkey auth method), and Console OAuth needs Appwrite's own provider apps, so both stay Cloud-only.
Two new profile features in console-profiles.ts, both true on Cloud and false on self-hosted, follow the existing accountMfa and accountIdentities gates. Self-hosted installs set VITE_CONSOLE_PROFILE=self-hosted in docker-compose.yml, so they get both off.
accountOAuth
Sign-in and sign-up have no GitHub, Google, GitLab or Bitbucket buttons. SignIn already drops the OAuth row and its divider when onOAuthLogin isn't passed.
accountPasskeys
Sign-in: no "Sign in with a passkey" button, and the email field doesn't start a passkey autofill request (no /account/tokens/passkey calls). The button and autofill callbacks are only passed while the feature is on, so switching profiles through the debug menu drops them too.
Account › Security: no Passkeys card, and the route loader skips account.listPasskeys.
Settings search and the command center: no Passkeys entry.
Project passkeys (Auth › Policies › Passkeys, the Passkey auth method, Android signing certificates) are unchanged on both profiles. The server is unchanged; this only changes the Console UI.
Test plan
End to end with dev servers from main and this branch, against a local stack built from 2.5.x (/v1/health/version → 2.5.0), signing in as a seeded console user. A Playwright script checked each page.
Before, self-hosted
After, self-hosted
After, Cloud
OAuth buttons on sign-in / sign-up
4 / —
0 / 0
4 / 4
Sign-in passkey button
shown
hidden
shown
/account/tokens/passkey requests on sign-in
2
0
1
Account › Security Passkeys card
shown
hidden
—
Project Auth › Policies › Passkeys
—
shown
—
Email and password fields
shown
shown
shown
Sign-in, self-hosted, before
Sign-in, self-hosted, after
Sign-up, self-hosted, after
Sign-in, Cloud, after (unchanged)
Sign-up, Cloud, after (unchanged)
Account › Security, self-hosted, before
Account › Security, self-hosted, after
Project passkey policy, self-hosted, after (still available)
🟢 Reset passkey UI state when accountPasskeys turns off (sign-in.tsx:311) — The new effect gate early-returns when features.accountPasskeys is false, but passkeySupported and passkeyAutofill set while the flag was on are never reset (apps/console/src/routes/_auth/sign-in.tsx:311-325).
This PR introduces an accountPasskeys profile feature flag and gates passkey UI around it: sign-in no longer fires conditional-mediation/autofill detection when the flag is off, the account security page conditionally renders the passkeys card, and the command-center entry is hidden accordingly.
Files
Change
apps/console/src/lib/console-profiles.ts
Adds the accountPasskeys default to console profiles
Adds profile-based gating for Console account passkeys, hiding the sign-in affordances, security card, data fetch, and settings/search entries on self-hosted while keeping project passkeys unchanged. The latest changes add an accountOAuth profile feature so self-hosted sign-in and sign-up use email and password, while Cloud retains OAuth sign-in.
Latest changes: The newest commits add the accountOAuth profile feature and gate OAuth sign-in and sign-up on the Cloud profile.
ChiragAgg5k
changed the title
feat(console): hide console account passkeys on self-hosted
feat(console): email and password only for self-hosted console sign-in
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
A self-hosted Console signs in with email and password only. Passkeys on self-hosted are for the apps people build (the project passkey policy and the Passkey auth method), and Console OAuth needs Appwrite's own provider apps, so both stay Cloud-only.
Two new profile features in
console-profiles.ts, bothtrueon Cloud andfalseon self-hosted, follow the existingaccountMfaandaccountIdentitiesgates. Self-hosted installs setVITE_CONSOLE_PROFILE=self-hostedindocker-compose.yml, so they get both off.accountOAuthSignInalready drops the OAuth row and its divider whenonOAuthLoginisn't passed.accountPasskeys/account/tokens/passkeycalls). The button and autofill callbacks are only passed while the feature is on, so switching profiles through the debug menu drops them too.account.listPasskeys.Project passkeys (Auth › Policies › Passkeys, the Passkey auth method, Android signing certificates) are unchanged on both profiles. The server is unchanged; this only changes the Console UI.
Test plan
End to end with dev servers from
mainand this branch, against a local stack built from2.5.x(/v1/health/version→2.5.0), signing in as a seeded console user. A Playwright script checked each page./account/tokens/passkeyrequests on sign-inSign-in, self-hosted, before
Sign-in, self-hosted, after
Sign-up, self-hosted, after
Sign-in, Cloud, after (unchanged)
Sign-up, Cloud, after (unchanged)
Account › Security, self-hosted, before
Account › Security, self-hosted, after
Project passkey policy, self-hosted, after (still available)
Prettier and ESLint pass on the changed files.
Related: appwrite-labs/cloud#5805