🐜 fix: Fix dynamodb errors when trying to authenticate (#208)

## 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)
This commit is contained in:
Wanjohi
2025-03-10 04:43:14 +03:00
committed by GitHub
parent b251584ccb
commit 74f8208fa4
6 changed files with 12 additions and 7 deletions

View File

@@ -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",

View File

@@ -87,10 +87,10 @@ export const App: Component = () => {
<Route
path="*"
component={(props) => (
// <AuthProvider>
// {props.children}
props.children
// </AuthProvider>
<AuthProvider>
{props.children}
</AuthProvider>
// props.children
)}
>
<Route path="new" component={CreateTeamComponent} />

View File

@@ -259,6 +259,7 @@ const InputRadioContainer = styled("div", {
base: {
...inputStyles,
display: "flex",
userSelect: "none",
flexDirection: "column",
height: "auto",
position: "relative",