From 74f8208fa4d193cb0cc75ea442335a3014e1c300 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Mon, 10 Mar 2025 04:43:14 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9C=20fix:=20Fix=20dynamodb=20errors?= =?UTF-8?q?=20when=20trying=20to=20authenticate=20(#208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This fixes an issue where `openauthjs` throws timeout errors while attempting to access DynamoDB > I am so glad this was not a major issue 😅 ## Related Issues [OpenAuth Error TypeError: fetch failed while accessing DynamoDB on AWS #5543 ](https://github.com/sst/sst/issues/5543) [Error TypeError: fetch failed while accessing DynamoDB on AWS #220](https://github.com/toolbeam/openauth/issues/220) ## Type of Change - [x] Bug fix (non-breaking change) - [ ] New feature (non-breaking change) - [ ] Breaking change (fix or feature that changes existing functionality) - [ ] Documentation update - [ ] Other (please describe): ## Checklist - [x] I have updated relevant documentation - [ ] My code follows the project's coding style - [ ] My changes generate no new warnings/errors ## Screenshots/Demo ![image](https://github.com/user-attachments/assets/03656741-4e74-4947-8a15-333f5cf19dc8) --- bun.lock | 6 ++++-- packages/core/package.json | 1 + packages/functions/package.json | 2 +- packages/www/package.json | 1 + packages/www/src/App.tsx | 8 ++++---- packages/www/src/ui/form.tsx | 1 + 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/bun.lock b/bun.lock index e3008893..9e5b0d1d 100644 --- a/bun.lock +++ b/bun.lock @@ -83,6 +83,7 @@ "@aws-sdk/client-sesv2": "^3.753.0", "@instantdb/admin": "^0.17.7", "@neondatabase/serverless": "^0.10.4", + "@openauthjs/openauth": "0.4.3", "@openauthjs/openevent": "^0.0.27", "@polar-sh/sdk": "^0.26.1", "drizzle-orm": "^0.39.3", @@ -105,7 +106,7 @@ "packages/functions": { "name": "@nestri/functions", "dependencies": { - "@openauthjs/openauth": "^0.3.9", + "@openauthjs/openauth": "0.4.3", "hono": "^4.6.15", "hono-openapi": "^0.3.1", "partysocket": "1.0.3", @@ -197,6 +198,7 @@ "@macaron-css/solid": "^1.5.3", "@modular-forms/solid": "^0.25.1", "@nestri/core": "*", + "@openauthjs/openauth": "0.4.3", "@solid-primitives/storage": "^4.3.1", "@solidjs/router": "^0.15.3", "modern-normalize": "^3.0.1", @@ -781,7 +783,7 @@ "@oddbird/popover-polyfill": ["@oddbird/popover-polyfill@0.4.3", "", {}, "sha512-kBS0ZAwH8kZqFl0mV89KPK4cLYl2ZoKSfYngK4dz1eLAhKzTK0yu4LrvLdMeM7JhjWK6GxBtiY+cl1s6vR2pUg=="], - "@openauthjs/openauth": ["@openauthjs/openauth@0.3.9", "", { "dependencies": { "@standard-schema/spec": "1.0.0-beta.3", "aws4fetch": "1.0.20", "jose": "5.9.6" }, "peerDependencies": { "arctic": "^2.2.2", "hono": "^4.0.0" } }, "sha512-a8UGz9iLQnB8TmY4bMDkCvMEWLHPEtDlXGnYNoFbEOxO13cCPu1pSS0DcUvKzHBAhXWnAMU01sSDMNZQr+aKWg=="], + "@openauthjs/openauth": ["@openauthjs/openauth@0.4.3", "", { "dependencies": { "@standard-schema/spec": "1.0.0-beta.3", "aws4fetch": "1.0.20", "jose": "5.9.6" }, "peerDependencies": { "arctic": "^2.2.2", "hono": "^4.0.0" } }, "sha512-RlnjqvHzqcbFVymEwhlUEuac4utA5h4nhSK/i2szZuQmxTIqbGUxZ+nM+avM+VV4Ing+/ZaNLKILoXS3yrkOOw=="], "@openauthjs/openevent": ["@openauthjs/openevent@0.0.27", "", { "dependencies": { "@standard-schema/spec": "1.0.0-beta.3", "aws4fetch": "1.0.20", "jose": "5.9.6", "ulid": "2.3.0" }, "peerDependencies": { "drizzle-orm": "^0.x", "mysql2": "^3.x", "postgres": "^3.x" }, "optionalPeers": ["drizzle-orm", "mysql2", "postgres"] }, "sha512-Peyl8hWGPmwTPC9gp3ufjEQ55mu64sSa9suBdW7SfHFBMnvxwD+XIoErneXyAH/ydomRghlh6t4N9mCCHjaF4g=="], diff --git a/packages/core/package.json b/packages/core/package.json index 67488454..5e7cd610 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -31,6 +31,7 @@ "@aws-sdk/client-sesv2": "^3.753.0", "@instantdb/admin": "^0.17.7", "@neondatabase/serverless": "^0.10.4", + "@openauthjs/openauth": "0.4.3", "@openauthjs/openevent": "^0.0.27", "@polar-sh/sdk": "^0.26.1", "drizzle-orm": "^0.39.3", diff --git a/packages/functions/package.json b/packages/functions/package.json index 29ed020f..88e2baa4 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -14,7 +14,7 @@ "typescript": "^5.0.0" }, "dependencies": { - "@openauthjs/openauth": "^0.3.9", + "@openauthjs/openauth": "0.4.3", "hono": "^4.6.15", "hono-openapi": "^0.3.1", "partysocket": "1.0.3" diff --git a/packages/www/package.json b/packages/www/package.json index f8e1fade..69dddbbb 100644 --- a/packages/www/package.json +++ b/packages/www/package.json @@ -25,6 +25,7 @@ "@macaron-css/solid": "^1.5.3", "@modular-forms/solid": "^0.25.1", "@nestri/core": "*", + "@openauthjs/openauth": "0.4.3", "@solid-primitives/storage": "^4.3.1", "@solidjs/router": "^0.15.3", "modern-normalize": "^3.0.1", diff --git a/packages/www/src/App.tsx b/packages/www/src/App.tsx index ecc40ab5..22c73bc3 100644 --- a/packages/www/src/App.tsx +++ b/packages/www/src/App.tsx @@ -87,10 +87,10 @@ export const App: Component = () => { ( - // - // {props.children} - props.children - // + + {props.children} + + // props.children )} > diff --git a/packages/www/src/ui/form.tsx b/packages/www/src/ui/form.tsx index fa268729..ed63c0d7 100644 --- a/packages/www/src/ui/form.tsx +++ b/packages/www/src/ui/form.tsx @@ -259,6 +259,7 @@ const InputRadioContainer = styled("div", { base: { ...inputStyles, display: "flex", + userSelect: "none", flexDirection: "column", height: "auto", position: "relative",