René's URL Explorer Experiment


Title: feat: Add passkey (WebAuthn) authentication support · Issue #78 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat: Add passkey (WebAuthn) authentication support · Issue #78 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat: Add passkey (WebAuthn) authentication support · Issue #78 · JavaScriptSolidServer/JavaScriptSolidServer

Description: The Password Problem Every week, another data breach exposes millions of passwords. Users reuse credentials across sites. Phishing attacks trick people into entering passwords on fake login pages. Password managers help, but adoption rem...

Open Graph Description: The Password Problem Every week, another data breach exposes millions of passwords. Users reuse credentials across sites. Phishing attacks trick people into entering passwords on fake login pages. ...

X Description: The Password Problem Every week, another data breach exposes millions of passwords. Users reuse credentials across sites. Phishing attacks trick people into entering passwords on fake login pages. ...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Add passkey (WebAuthn) authentication support","articleBody":"## The Password Problem\n\nEvery week, another data breach exposes millions of passwords. Users reuse credentials across sites. Phishing attacks trick people into entering passwords on fake login pages. Password managers help, but adoption remains low.\n\n**Passkeys solve this.** They're phishing-resistant, can't be reused across sites, and nothing secret is ever transmitted or stored on the server. Apple, Google, and Microsoft have all shipped passkey support. It's time for Solid pods to join them.\n\n---\n\n## What Are Passkeys?\n\nPasskeys are the consumer-friendly name for WebAuthn/FIDO2 credentials. They use public-key cryptography:\n\n1. **Registration**: Device generates a key pair, sends public key to server\n2. **Login**: Server sends challenge, device signs it with private key\n3. **Verification**: Server verifies signature with stored public key\n\nThe private key never leaves the user's device (phone, laptop, or security key). There's nothing to phish, nothing to leak in a breach.\n\n---\n\n## Implementation Plan\n\n### Dependencies\n\nAdd `@simplewebauthn/server` - the most popular WebAuthn library for Node.js:\n\n```bash\nnpm install @simplewebauthn/server\n```\n\n### 1. Extend Account Schema\n\n**File:** `src/idp/accounts.js`\n\nAdd passkey storage to the account object:\n\n```javascript\n// Current schema\n{\n  \"id\": \"uuid\",\n  \"username\": \"alice\",\n  \"email\": \"alice@example.com\",\n  \"passwordHash\": \"bcrypt...\",\n  \"webId\": \"https://alice.example.com/profile/card#me\",\n  \"podName\": \"alice\",\n  \"createdAt\": \"2024-01-01T00:00:00Z\"\n}\n\n// Extended schema\n{\n  // ... existing fields ...\n  \"passkeys\": [\n    {\n      \"credentialId\": \"base64url-encoded-credential-id\",\n      \"publicKey\": \"base64url-encoded-public-key\", \n      \"counter\": 0,\n      \"transports\": [\"internal\", \"hybrid\"],\n      \"createdAt\": \"2024-01-01T00:00:00Z\",\n      \"lastUsed\": \"2024-01-15T12:00:00Z\",\n      \"name\": \"iPhone\"  // User-friendly label\n    }\n  ]\n}\n```\n\nAdd helper methods to `accounts.js`:\n\n```javascript\n/**\n * Add a passkey credential to an account\n */\nexport async function addPasskey(accountId, credential) {\n  const account = await findById(accountId);\n  if (!account) return false;\n  \n  account.passkeys = account.passkeys || [];\n  account.passkeys.push({\n    credentialId: credential.credentialId,\n    publicKey: credential.publicKey,\n    counter: credential.counter,\n    transports: credential.transports || [],\n    createdAt: new Date().toISOString(),\n    lastUsed: null,\n    name: credential.name || 'Security Key'\n  });\n  \n  await saveAccount(account);\n  return true;\n}\n\n/**\n * Find account by passkey credential ID\n */\nexport async function findByCredentialId(credentialId) {\n  // Search through accounts for matching credential\n  // Consider adding a _credential_index.json for efficiency\n}\n\n/**\n * Update passkey counter after successful auth (prevents replay attacks)\n */\nexport async function updatePasskeyCounter(accountId, credentialId, newCounter) {\n  const account = await findById(accountId);\n  const passkey = account.passkeys.find(p => p.credentialId === credentialId);\n  if (passkey) {\n    passkey.counter = newCounter;\n    passkey.lastUsed = new Date().toISOString();\n    await saveAccount(account);\n  }\n}\n```\n\n### 2. Create Passkey Endpoints\n\n**File:** `src/idp/passkey.js` (new file)\n\n```javascript\nimport {\n  generateRegistrationOptions,\n  verifyRegistrationResponse,\n  generateAuthenticationOptions,\n  verifyAuthenticationResponse\n} from '@simplewebauthn/server';\nimport * as accounts from './accounts.js';\n\n// Configuration - should come from server config\nconst getRP = (request) => ({\n  name: 'Solid Pod',\n  id: request.hostname.split(':')[0],  // RP ID is the domain\n});\n\nconst origin = (request) => `\\${request.protocol}://\\${request.hostname}`;\n\n// Temporary challenge storage (use session/redis in production)\nconst challenges = new Map();\n\n/**\n * POST /idp/passkey/register/options\n * Generate registration options for a logged-in user\n */\nexport async function registrationOptions(request, reply) {\n  const accountId = request.session?.accountId;\n  if (!accountId) {\n    return reply.code(401).send({ error: 'Must be logged in to register passkey' });\n  }\n  \n  const account = await accounts.findById(accountId);\n  const rp = getRP(request);\n  \n  const options = await generateRegistrationOptions({\n    rpName: rp.name,\n    rpID: rp.id,\n    userID: account.id,\n    userName: account.username,\n    userDisplayName: account.username,\n    attestationType: 'none',  // We don't need attestation\n    excludeCredentials: (account.passkeys || []).map(pk => ({\n      id: Buffer.from(pk.credentialId, 'base64url'),\n      type: 'public-key',\n      transports: pk.transports\n    })),\n    authenticatorSelection: {\n      residentKey: 'preferred',\n      userVerification: 'preferred'\n    }\n  });\n  \n  // Store challenge for verification\n  challenges.set(account.id, {\n    challenge: options.challenge,\n    type: 'registration',\n    expires: Date.now() + 60000  // 1 minute\n  });\n  \n  return reply.send(options);\n}\n\n/**\n * POST /idp/passkey/register/verify\n * Verify and store the registration response\n */\nexport async function registrationVerify(request, reply) {\n  const accountId = request.session?.accountId;\n  if (!accountId) {\n    return reply.code(401).send({ error: 'Must be logged in' });\n  }\n  \n  const account = await accounts.findById(accountId);\n  const stored = challenges.get(account.id);\n  \n  if (!stored || stored.type !== 'registration' || Date.now() > stored.expires) {\n    return reply.code(400).send({ error: 'Challenge expired or invalid' });\n  }\n  \n  const rp = getRP(request);\n  \n  try {\n    const verification = await verifyRegistrationResponse({\n      response: request.body,\n      expectedChallenge: stored.challenge,\n      expectedOrigin: origin(request),\n      expectedRPID: rp.id\n    });\n    \n    if (!verification.verified) {\n      return reply.code(400).send({ error: 'Verification failed' });\n    }\n    \n    const { credentialID, credentialPublicKey, counter } = verification.registrationInfo;\n    \n    await accounts.addPasskey(accountId, {\n      credentialId: Buffer.from(credentialID).toString('base64url'),\n      publicKey: Buffer.from(credentialPublicKey).toString('base64url'),\n      counter,\n      transports: request.body.response.transports,\n      name: request.body.name || 'Security Key'\n    });\n    \n    challenges.delete(account.id);\n    \n    return reply.send({ success: true });\n  } catch (err) {\n    return reply.code(400).send({ error: err.message });\n  }\n}\n\n/**\n * POST /idp/passkey/login/options\n * Generate authentication options (can be called before identifying user)\n */\nexport async function authenticationOptions(request, reply) {\n  const { username } = request.body || {};\n  const rp = getRP(request);\n  \n  let allowCredentials = [];\n  let accountId = null;\n  \n  // If username provided, limit to that user's credentials\n  if (username) {\n    const account = await accounts.findByUsername(username);\n    if (account && account.passkeys?.length) {\n      accountId = account.id;\n      allowCredentials = account.passkeys.map(pk => ({\n        id: Buffer.from(pk.credentialId, 'base64url'),\n        type: 'public-key',\n        transports: pk.transports\n      }));\n    }\n  }\n  \n  const options = await generateAuthenticationOptions({\n    rpID: rp.id,\n    allowCredentials,\n    userVerification: 'preferred'\n  });\n  \n  // Store challenge - use visitorId for anonymous requests\n  const challengeKey = accountId || request.body.visitorId || crypto.randomUUID();\n  challenges.set(challengeKey, {\n    challenge: options.challenge,\n    type: 'authentication',\n    accountId,\n    expires: Date.now() + 60000\n  });\n  \n  return reply.send({ ...options, challengeKey });\n}\n\n/**\n * POST /idp/passkey/login/verify\n * Verify authentication and return session\n */\nexport async function authenticationVerify(request, reply) {\n  const { challengeKey } = request.body;\n  const stored = challenges.get(challengeKey);\n  \n  if (!stored || stored.type !== 'authentication' || Date.now() > stored.expires) {\n    return reply.code(400).send({ error: 'Challenge expired or invalid' });\n  }\n  \n  // Find account by credential ID\n  const credentialId = request.body.id;\n  const account = stored.accountId \n    ? await accounts.findById(stored.accountId)\n    : await accounts.findByCredentialId(credentialId);\n    \n  if (!account) {\n    return reply.code(400).send({ error: 'Unknown credential' });\n  }\n  \n  const passkey = account.passkeys.find(\n    pk => pk.credentialId === credentialId\n  );\n  \n  if (!passkey) {\n    return reply.code(400).send({ error: 'Credential not found' });\n  }\n  \n  const rp = getRP(request);\n  \n  try {\n    const verification = await verifyAuthenticationResponse({\n      response: request.body,\n      expectedChallenge: stored.challenge,\n      expectedOrigin: origin(request),\n      expectedRPID: rp.id,\n      authenticator: {\n        credentialID: Buffer.from(passkey.credentialId, 'base64url'),\n        credentialPublicKey: Buffer.from(passkey.publicKey, 'base64url'),\n        counter: passkey.counter\n      }\n    });\n    \n    if (!verification.verified) {\n      return reply.code(400).send({ error: 'Verification failed' });\n    }\n    \n    // Update counter to prevent replay attacks\n    await accounts.updatePasskeyCounter(\n      account.id, \n      credentialId, \n      verification.authenticationInfo.newCounter\n    );\n    \n    challenges.delete(challengeKey);\n    \n    // Return account info for session creation\n    // The interaction handler will use this to complete the OIDC flow\n    return reply.send({ \n      success: true,\n      accountId: account.id,\n      webId: account.webId\n    });\n  } catch (err) {\n    return reply.code(400).send({ error: err.message });\n  }\n}\n```\n\n### 3. Register Routes\n\n**File:** `src/idp/index.js`\n\nAdd the passkey routes:\n\n```javascript\nimport * as passkey from './passkey.js';\n\n// In the route registration section:\nfastify.post('/idp/passkey/register/options', passkey.registrationOptions);\nfastify.post('/idp/passkey/register/verify', passkey.registrationVerify);\nfastify.post('/idp/passkey/login/options', passkey.authenticationOptions);\nfastify.post('/idp/passkey/login/verify', passkey.authenticationVerify);\n```\n\n### 4. Update Login UI\n\n**File:** `src/idp/views.js`\n\nAdd passkey support to the login page:\n\n```javascript\nexport function loginPage({ uid, error, passkeyEnabled = true }) {\n  return `\u003c!DOCTYPE html>\n\u003chtml>\n\u003chead>\n  \u003ctitle>Login - Solid Pod\u003c/title>\n  \u003cstyle>\n    /* ... existing styles ... */\n    .passkey-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #ddd; }\n    .passkey-btn { \n      width: 100%; padding: 12px; background: #1a73e8; color: white;\n      border: none; border-radius: 4px; cursor: pointer; font-size: 16px;\n      display: flex; align-items: center; justify-content: center; gap: 8px;\n    }\n    .passkey-btn:hover { background: #1557b0; }\n    .passkey-btn svg { width: 20px; height: 20px; }\n    .divider { display: flex; align-items: center; margin: 20px 0; }\n    .divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #ddd; }\n    .divider span { padding: 0 10px; color: #666; font-size: 14px; }\n  \u003c/style>\n\u003c/head>\n\u003cbody>\n  \u003cdiv class=\"container\">\n    \u003ch1>Sign In\u003c/h1>\n    \\${error ? `\u003cdiv class=\"error\">\\${error}\u003c/div>` : ''}\n    \n    \\${passkeyEnabled ? `\n    \u003cdiv class=\"passkey-section\">\n      \u003cbutton type=\"button\" class=\"passkey-btn\" onclick=\"loginWithPasskey()\">\n        \u003csvg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n          \u003cpath d=\"M12 1C8.14 1 5 4.14 5 8c0 2.38 1.19 4.47 3 5.74V17a1 1 0 001 1h1v1a1 1 0 001 1h2a1 1 0 001-1v-1h1a1 1 0 001-1v-3.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm0 2c2.76 0 5 2.24 5 5s-2.24 5-5 5-5-2.24-5-5 2.24-5 5-5z\"/>\n        \u003c/svg>\n        Sign in with Passkey\n      \u003c/button>\n    \u003c/div>\n    \n    \u003cdiv class=\"divider\">\u003cspan>or\u003c/span>\u003c/div>\n    ` : ''}\n    \n    \u003cform method=\"POST\" action=\"/idp/interaction/\\${uid}/login\">\n      \u003cinput type=\"text\" name=\"login\" placeholder=\"Username or Email\" required>\n      \u003cinput type=\"password\" name=\"password\" placeholder=\"Password\" required>\n      \u003cbutton type=\"submit\">Sign In\u003c/button>\n    \u003c/form>\n  \u003c/div>\n  \n  \\${passkeyEnabled ? `\n  \u003cscript>\n    async function loginWithPasskey() {\n      try {\n        // Get authentication options\n        const optionsRes = await fetch('/idp/passkey/login/options', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json' },\n          body: JSON.stringify({ visitorId: crypto.randomUUID() })\n        });\n        const options = await optionsRes.json();\n        \n        // Convert base64url to ArrayBuffer\n        options.challenge = base64urlToBuffer(options.challenge);\n        if (options.allowCredentials) {\n          options.allowCredentials = options.allowCredentials.map(c => ({\n            ...c,\n            id: base64urlToBuffer(c.id)\n          }));\n        }\n        \n        // Prompt user for passkey\n        const credential = await navigator.credentials.get({ publicKey: options });\n        \n        // Send response to server\n        const verifyRes = await fetch('/idp/passkey/login/verify', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json' },\n          body: JSON.stringify({\n            challengeKey: options.challengeKey,\n            id: credential.id,\n            rawId: bufferToBase64url(credential.rawId),\n            type: credential.type,\n            response: {\n              clientDataJSON: bufferToBase64url(credential.response.clientDataJSON),\n              authenticatorData: bufferToBase64url(credential.response.authenticatorData),\n              signature: bufferToBase64url(credential.response.signature),\n              userHandle: credential.response.userHandle \n                ? bufferToBase64url(credential.response.userHandle) \n                : null\n            }\n          })\n        });\n        \n        const result = await verifyRes.json();\n        if (result.success) {\n          // Complete the OIDC interaction\n          window.location.href = '/idp/interaction/\\${uid}/passkey?accountId=' + result.accountId;\n        } else {\n          alert('Passkey authentication failed: ' + result.error);\n        }\n      } catch (err) {\n        if (err.name === 'NotAllowedError') {\n          // User cancelled\n        } else {\n          console.error('Passkey error:', err);\n          alert('Passkey authentication failed');\n        }\n      }\n    }\n    \n    function base64urlToBuffer(base64url) {\n      const base64 = base64url.replace(/-/g, '+').replace(/_/g, '/');\n      const binary = atob(base64);\n      const bytes = new Uint8Array(binary.length);\n      for (let i = 0; i \u003c binary.length; i++) bytes[i] = binary.charCodeAt(i);\n      return bytes.buffer;\n    }\n    \n    function bufferToBase64url(buffer) {\n      const bytes = new Uint8Array(buffer);\n      let binary = '';\n      for (let i = 0; i \u003c bytes.length; i++) binary += String.fromCharCode(bytes[i]);\n      return btoa(binary).replace(/\\\\+/g, '-').replace(/\\\\//g, '_').replace(/=/g, '');\n    }\n  \u003c/script>\n  ` : ''}\n\u003c/body>\n\u003c/html>`;\n}\n```\n\n### 5. Add Passkey Interaction Handler\n\n**File:** `src/idp/interactions.js`\n\nAdd a handler for passkey-authenticated logins:\n\n```javascript\n// GET /idp/interaction/:uid/passkey?accountId=...\n// Called after successful passkey verification to complete OIDC flow\nexport async function handlePasskeyLogin(request, reply) {\n  const { uid } = request.params;\n  const { accountId } = request.query;\n  \n  if (!accountId) {\n    return reply.code(400).send({ error: 'Missing accountId' });\n  }\n  \n  const account = await accounts.findById(accountId);\n  if (!account) {\n    return reply.code(400).send({ error: 'Account not found' });\n  }\n  \n  // Update last login\n  await accounts.updateLastLogin(accountId);\n  \n  // Complete the OIDC interaction\n  const result = {\n    login: {\n      accountId: account.id\n    }\n  };\n  \n  const redirectTo = await provider.interactionResult(request.raw, reply.raw, result);\n  return reply.redirect(redirectTo);\n}\n```\n\n### 6. Configuration\n\n**File:** `src/server.js`\n\nAdd passkey configuration option:\n\n```javascript\n// In createServer options\n{\n  passkey: true,  // Enable passkey authentication (default: true)\n}\n\n// Pass to login page\nconst passkeyEnabled = config.passkey !== false;\n```\n\n---\n\n## Testing Plan\n\n### Unit Tests (`test/passkey.test.js`)\n\n```javascript\ndescribe('Passkey Authentication', () => {\n  describe('Registration', () => {\n    it('should generate registration options for logged-in user');\n    it('should reject registration options for anonymous user');\n    it('should verify and store valid registration response');\n    it('should reject expired challenge');\n    it('should reject duplicate credential');\n  });\n  \n  describe('Authentication', () => {\n    it('should generate authentication options');\n    it('should verify valid authentication response');\n    it('should update counter after successful auth');\n    it('should reject replayed authentication (counter check)');\n    it('should reject expired challenge');\n  });\n  \n  describe('Account Integration', () => {\n    it('should add passkey to existing account');\n    it('should find account by credential ID');\n    it('should support multiple passkeys per account');\n    it('should allow login with any registered passkey');\n  });\n});\n```\n\n### Manual Testing\n\n1. **Register passkey**: Login with password → Settings → Add Passkey → Use Touch ID/Face ID\n2. **Login with passkey**: Click \"Sign in with Passkey\" → Authenticate with biometric\n3. **Cross-device**: Register on phone, login on laptop (via QR code/hybrid transport)\n4. **Security key**: Test with YubiKey or similar hardware key\n\n---\n\n## Security Considerations\n\n1. **Challenge expiration**: 60 seconds to prevent replay attacks\n2. **Counter validation**: Detect cloned authenticators\n3. **RP ID binding**: Credentials bound to domain, prevents phishing\n4. **User verification**: Prefer biometric/PIN verification\n5. **Attestation**: Set to 'none' for privacy (we trust the authenticator)\n\n---\n\n## Future Enhancements\n\n- [ ] Passkey management UI (list, rename, delete passkeys)\n- [ ] Passwordless accounts (passkey-only registration)\n- [ ] Conditional UI (autofill passkey in username field)\n- [ ] Backup codes for account recovery\n- [ ] Cross-origin credential sharing (related origins)\n\n---\n\n## References\n\n- [WebAuthn Spec](https://www.w3.org/TR/webauthn-2/)\n- [SimpleWebAuthn Documentation](https://simplewebauthn.dev/)\n- [Passkeys.dev](https://passkeys.dev/) - Implementation guide\n- [FIDO Alliance](https://fidoalliance.org/passkeys/)\n\n\n---\n\n## Passkey Registration UI\n\nUsers need a way to register passkeys. Three approaches, in order of implementation:\n\n### Option 1: Post-login prompt (Phase 1 - MVP)\n\nAfter successful password login, prompt users to add a passkey:\n\n```\n┌────────────────────────────────────┐\n│                                    │\n│   🔐 Add a Passkey?                │\n│                                    │\n│   Sign in faster next time with    │\n│   Touch ID, Face ID, or a          │\n│   security key.                    │\n│                                    │\n│   [  Add Passkey  ]  [  Skip  ]    │\n│                                    │\n└────────────────────────────────────┘\n```\n\n**Implementation:**\n- After password login succeeds, check if user has any passkeys\n- If not, redirect to `/idp/interaction/:uid/passkey-prompt`\n- \"Add Passkey\" triggers registration flow, then completes OIDC interaction\n- \"Skip\" completes OIDC interaction directly\n- Store `passkeyPromptDismissed` flag to avoid nagging\n\n```javascript\n// In interactions.js, after successful password login:\nif (!account.passkeys?.length && !account.passkeyPromptDismissed) {\n  return renderPasskeyPrompt(reply, uid);\n}\n```\n\n### Option 2: Account settings page (Phase 2)\n\nAdd `/idp/settings` route for passkey management:\n\n```\n┌────────────────────────────────────┐\n│  Account Settings                  │\n│                                    │\n│  Username: alice                   │\n│  Email: alice@example.com          │\n│  WebID: https://alice.example/...  │\n│                                    │\n│  ─────────────────────────────────│\n│                                    │\n│  Passkeys                          │\n│                                    │\n│  🔑 iPhone (added Jan 5)    [X]   │\n│  🔑 MacBook (added Jan 8)   [X]   │\n│                                    │\n│  [+ Add new passkey]               │\n│                                    │\n│  ─────────────────────────────────│\n│                                    │\n│  [Change Password]                 │\n│                                    │\n└────────────────────────────────────┘\n```\n\n**Features:**\n- List all registered passkeys with friendly names and dates\n- Delete individual passkeys\n- Add new passkeys\n- Requires active session (cookie-based auth)\n\n### Option 3: During pod registration (Phase 3)\n\nAdd passkey option to the registration form:\n\n```\n┌────────────────────────────────────┐\n│  Create Your Pod                   │\n│                                    │\n│  Username: [____________]          │\n│  Email:    [____________]          │\n│  Password: [____________]          │\n│                                    │\n│  ☐ Also set up passkey login       │\n│    (recommended)                   │\n│                                    │\n│  [       Create Pod        ]       │\n└────────────────────────────────────┘\n```\n\n**Future consideration:** Passwordless registration (passkey-only accounts)\n\n---\n\n## Implementation Phases\n\n| Phase | Feature | Effort |\n|-------|---------|--------|\n| 1 | Post-login prompt + passkey login | 1 day |\n| 2 | Account settings page | 0.5 day |\n| 3 | Registration integration | 0.5 day |\n| 4 | Passwordless accounts | 1 day |\n\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-11T16:29:38Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:389cf12e-573b-73d5-7986-50bd9f2d09d2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9AD2:D405E:12D4E28:17E6314:6B03964E
html-safe-nonce4b2836b3159d95e78e8bced731ee111030cd8d3171111603342f32d02b35456e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUQyOkQ0MDVFOjEyRDRFMjg6MTdFNjMxNDo2QjAzOTY0RSIsInZpc2l0b3JfaWQiOiI0MDIyNTQ3MjIwMjQ2MjcxNTY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfe80974741cbc34d7aceb84d47210a4c86d4c512bba2864c1cb6721683d45b9f
hovercard-subject-tagissue:3801572394
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/78/issue_layout
twitter:imagehttps://opengraph.githubassets.com/edf48ebd65a0cf91d6618d65f0d132bbdc7c07c81b032b2492b25027503f3078/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/edf48ebd65a0cf91d6618d65f0d132bbdc7c07c81b032b2492b25027503f3078/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
og:image:altThe Password Problem Every week, another data breach exposes millions of passwords. Users reuse credentials across sites. Phishing attacks trick people into entering passwords on fake login pages. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F78
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F78
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
feat: Add passkey (WebAuthn) authentication supporthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#top
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
stale-fixedOpen issue whose described problem no longer reproduces on current main; verify and closehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22stale-fixed%22
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Jan 11, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#issue-3801572394
WebAuthn Spechttps://www.w3.org/TR/webauthn-2/
SimpleWebAuthn Documentationhttps://simplewebauthn.dev/
Passkeys.devhttps://passkeys.dev/
FIDO Alliancehttps://fidoalliance.org/passkeys/
melvincarvalhohttps://github.com/melvincarvalho
on Jan 11, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#event-21972582610
feat: add passkey (WebAuthn) authentication supporthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e94287c3ee47198af4e594f397c2f47ae8ed8ea6
e94287chttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/e94287c3ee47198af4e594f397c2f47ae8ed8ea6
feat: add passkey (WebAuthn) authentication support (#79)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/871ff2659e44c1bb05d5ba6feb8597eb1615ad05
#79https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/79
871ff26https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/871ff2659e44c1bb05d5ba6feb8597eb1615ad05
melvincarvalhohttps://github.com/melvincarvalho
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
on May 12, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#event-25414635247
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Jun 8, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#issuecomment-4646879151
#540https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/540
melvincarvalhohttps://github.com/melvincarvalho
stale-fixedOpen issue whose described problem no longer reproduces on current main; verify and closehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22stale-fixed%22
on Jun 8, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#event-26461076651
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 8, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#event-26461077896
melvincarvalhohttps://github.com/melvincarvalho
on Jun 11, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78#event-26609474432
fix(idp): passkey login degrades on WebView/insecure contexts instead…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/8af19c4a0de88d1d3e6498ce50f9dcc49d8b213a
8af19c4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/8af19c4a0de88d1d3e6498ce50f9dcc49d8b213a
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/78
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
stale-fixedOpen issue whose described problem no longer reproduces on current main; verify and closehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22stale-fixed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.