Title: idp: login page's passkey JS calls crypto.randomUUID — crashes on stale Android WebViews (de-Googled phones) · Issue #556 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: idp: login page's passkey JS calls crypto.randomUUID — crashes on stale Android WebViews (de-Googled phones) · Issue #556 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: idp: login page's passkey JS calls crypto.randomUUID — crashes on stale Android WebViews (de-Googled phones) · Issue #556 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Port-back from jspod (jspod#65), where the same crash class was found in the seeded onboarding pages. Problem src/idp/views.js:273 — the login page's inline passkey JS calls crypto.randomUUID() directly: body: JSON.stringify({ visitorId:...
Open Graph Description: Port-back from jspod (jspod#65), where the same crash class was found in the seeded onboarding pages. Problem src/idp/views.js:273 — the login page's inline passkey JS calls crypto.randomUUID() dir...
X Description: Port-back from jspod (jspod#65), where the same crash class was found in the seeded onboarding pages. Problem src/idp/views.js:273 — the login page's inline passkey JS calls crypto.randomUUID()...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/556
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"idp: login page's passkey JS calls crypto.randomUUID — crashes on stale Android WebViews (de-Googled phones)","articleBody":"Port-back from jspod ([jspod#65](https://github.com/JavaScriptSolidServer/jspod/issues/65)), where the same crash class was found in the seeded onboarding pages.\n\n## Problem\n\n`src/idp/views.js:273` — the login page's inline passkey JS calls `crypto.randomUUID()` directly:\n\n```js\nbody: JSON.stringify({ visitorId: crypto.randomUUID() })\n```\n\n`crypto.randomUUID` requires Chromium 92+ **and a secure context**. On de-Googled Android phones the System WebView is often stale (it updates via the Play Store, which isn't installed), so the API is missing and \"Sign in with Passkey\" dies with a cryptic `crypto.randomUUID is not a function`. This blocks the Solid-pod-on-a-de-Googled-phone path (#46 arc, js-pod/android).\n\n## Fix (proven downstream)\n\njspod patched its pages with a ~6-line fallback built on `crypto.getRandomValues` (broadly supported, not secure-context-gated), applied **before** first use:\n\n```html\n\u003cscript>\nif (typeof crypto !== 'undefined' && crypto.getRandomValues && !crypto.randomUUID) {\n crypto.randomUUID = function () {\n var b = crypto.getRandomValues(new Uint8Array(16));\n b[6] = (b[6] & 0x0f) | 0x40; b[8] = (b[8] & 0x3f) | 0x80;\n var h = [...b].map(x => x.toString(16).padStart(2, '0')).join('');\n return h.slice(0,8)+'-'+h.slice(8,12)+'-'+h.slice(12,16)+'-'+h.slice(16,20)+'-'+h.slice(20);\n };\n}\n\u003c/script>\n```\n\nSame guard belongs in JSS's `loginPage()` (and any other view whose inline JS reaches for `crypto.randomUUID` — grep says views.js:273 is the only site today).\n\nNote: passkeys themselves (WebAuthn) won't work on insecure contexts regardless — but the page must not *crash*; it should degrade to password/Schnorr login cleanly.\n\n## Refs\n\n- jspod#65 — downstream discovery + the page-side patch\n- #46 — Solid Pod on Every Phone","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-06-11T00:13:01Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/556"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3e3303bf-0270-fbb5-cedd-648ba8d93fb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D786:5DF53:7A73D2:9B3293:6B0398D8 |
| html-safe-nonce | d283b58fcd461ff3e069307d678ad39ae7350d581979aba285caf57957ce26b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzg2OjVERjUzOjdBNzNEMjo5QjMyOTM6NkIwMzk4RDgiLCJ2aXNpdG9yX2lkIjoiNTEyOTY4NjUzODE0MTI3NjM3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 13b7040470bd7ad5afc707b0bd1430ea1ff8c8fedf9eebf5490cf873e9e6eaac |
| hovercard-subject-tag | issue:4636024877 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59faa31e1b36acdef98ecb448dc6e0c6e6721f29cecfcb6a0df4227af48c3de2/JavaScriptSolidServer/JavaScriptSolidServer/issues/556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59faa31e1b36acdef98ecb448dc6e0c6e6721f29cecfcb6a0df4227af48c3de2/JavaScriptSolidServer/JavaScriptSolidServer/issues/556 |
| og:image:alt | Port-back from jspod (jspod#65), where the same crash class was found in the seeded onboarding pages. Problem src/idp/views.js:273 — the login page's inline passkey JS calls crypto.randomUUID() dir... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width