Title: Onboarding sign-in crashes on old WebViews (de-Googled phones): polyfill crypto.randomUUID in signin/welcome/account · Issue #65 · JavaScriptSolidServer/jspod · GitHub
Open Graph Title: Onboarding sign-in crashes on old WebViews (de-Googled phones): polyfill crypto.randomUUID in signin/welcome/account · Issue #65 · JavaScriptSolidServer/jspod
X Title: Onboarding sign-in crashes on old WebViews (de-Googled phones): polyfill crypto.randomUUID in signin/welcome/account · Issue #65 · JavaScriptSolidServer/jspod
Description: Problem The seeded onboarding pages (signin.html, welcome.html, account.html) import solid-oidc@0.0.8, which needs crypto.randomUUID (Chromium 92+, secure-context) and crypto.subtle (PKCE SHA-256 + DPoP). On de-Googled Android phones the...
Open Graph Description: Problem The seeded onboarding pages (signin.html, welcome.html, account.html) import solid-oidc@0.0.8, which needs crypto.randomUUID (Chromium 92+, secure-context) and crypto.subtle (PKCE SHA-256 +...
X Description: Problem The seeded onboarding pages (signin.html, welcome.html, account.html) import solid-oidc@0.0.8, which needs crypto.randomUUID (Chromium 92+, secure-context) and crypto.subtle (PKCE SHA-256 +...
Opengraph URL: https://github.com/JavaScriptSolidServer/jspod/issues/65
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Onboarding sign-in crashes on old WebViews (de-Googled phones): polyfill crypto.randomUUID in signin/welcome/account","articleBody":"## Problem\n\nThe seeded onboarding pages (`signin.html`, `welcome.html`, `account.html`) import `solid-oidc@0.0.8`, which needs **`crypto.randomUUID`** (Chromium 92+, secure-context) and **`crypto.subtle`** (PKCE SHA-256 + DPoP). On **de-Googled Android phones** the Android System WebView is often **stale** (it updates via the Play Store, which isn't installed), so `crypto.randomUUID` is missing — and sign-in dies at the welcome → sign-in step with a cryptic:\n\n```\ncrypto.randomUUID is not a function\n```\n\nThis blocks the *Solid-Pod-on-a-de-Googled-phone* path (the whole point of the Android build).\n\n## Repro\n\nDe-Googled phone → jspod pod → welcome → \"sign in\" → crash (no useful message).\n\n## Fix (page-level, quick)\n\nPolyfill `crypto.randomUUID` via `crypto.getRandomValues` (broadly supported, not secure-context-gated) **before** the solid-oidc module import, in all three onboarding pages. (`signin.html` already patched locally:)\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 = []; for (var i = 0; i \u003c 16; i++) h.push((b[i] + 0x100).toString(16).slice(1));\n return h[0]+h[1]+h[2]+h[3]+'-'+h[4]+h[5]+'-'+h[6]+h[7]+'-'+h[8]+h[9]+'-'+h[10]+h[11]+h[12]+h[13]+h[14]+h[15];\n };\n}\n\u003c/script>\n```\n\nAdd the same to `welcome.html` (restores session on load → can call `randomUUID`) and `account.html`.\n\n## Caveat\n\nThis fixes **only** `randomUUID`. solid-oidc also needs **`crypto.subtle`** for PKCE/DPoP, which old WebViews / non-secure contexts lack and which can't be cheaply polyfilled (DPoP = real ECDSA key-gen/sign). So if `subtle` is also missing, sign-in still fails — the durable fix there is a **modern browser**. (`subtle` is the older API, so on a `localhost` secure context it's usually present and the polyfill is enough.)\n\n## Deployment\n\nThese pages are seeded to the Android pod from `jspod@${JSPOD_PAGES_VERSION}` via jsDelivr (overwrite=true), so the fix reaches devices via: **republish jspod → bump `JSPOD_PAGES_VERSION` in js-pod/android → rebuild APK** (re-seeds the patched pages on next launch).\n\n## Also (device-level)\n\nShip/keep a **modern browser** in the de-Googled phone image — the real fix for the `crypto.subtle` requirement.\n\n## Related\n- `JavaScriptSolidServer/solid-oidc`#10 — upstream graceful degradation (polyfill + clear error in the lib itself).\n- `js-pod/android` — the device/WebView side.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-26T16:32:08Z","url":"https://github.com/JavaScriptSolidServer/jspod/issues/65"}
| 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:1a1e29b9-cf3b-67c4-6e42-6c36dcb0454b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82AA:33098E:4EFDED:652E8C:6B039F7B |
| html-safe-nonce | 9781a4743809a68c4a22c592c220f4a813cf1e4a0709569f14ed6f7a121d571c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkFBOjMzMDk4RTo0RUZERUQ6NjUyRThDOjZCMDM5RjdCIiwidmlzaXRvcl9pZCI6IjcxNzM4MDAzNjQ5NjAwOTYxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed186eb19ca60da72510022d3febf85f7f5e57ba8511f42e3ae441876ad9f693 |
| hovercard-subject-tag | issue:4525815460 |
| 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/jspod/65/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef04d9846c8e51a6795b14a3ffc3b328f2245ab6949c59e0d1392cbf96aa83a4/JavaScriptSolidServer/jspod/issues/65 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef04d9846c8e51a6795b14a3ffc3b328f2245ab6949c59e0d1392cbf96aa83a4/JavaScriptSolidServer/jspod/issues/65 |
| og:image:alt | Problem The seeded onboarding pages (signin.html, welcome.html, account.html) import solid-oidc@0.0.8, which needs crypto.randomUUID (Chromium 92+, secure-context) and crypto.subtle (PKCE SHA-256 +... |
| 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/jspod git https://github.com/JavaScriptSolidServer/jspod.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1135610078 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/jspod |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1135610078 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/jspod |
| 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