robodev 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"react": "^18.3.1",
|
|
13
13
|
"react-dom": "^18.3.1",
|
|
14
14
|
"@robodev-ai/sdk": "^0.6.0",
|
|
15
|
-
"@robodev-ai/client": "^0.
|
|
15
|
+
"@robodev-ai/client": "^0.3.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/react": "^18.3.24",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"@vitejs/plugin-react": "^4.7.0",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"vite": "^6.3.5",
|
|
23
|
-
"robodev": "^0.
|
|
23
|
+
"robodev": "^0.10.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -86,11 +86,13 @@ function App() {
|
|
|
86
86
|
setPending(true);
|
|
87
87
|
setError(null);
|
|
88
88
|
try {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
if (mode === "signup") {
|
|
90
|
+
await api.auth.signUp({ email, password, name: name.trim() || undefined });
|
|
91
|
+
} else {
|
|
92
|
+
await api.auth.signIn.email({ email, password });
|
|
93
|
+
}
|
|
94
|
+
const { user: next } = await api.auth.getUser();
|
|
95
|
+
setUser(next);
|
|
94
96
|
setPassword("");
|
|
95
97
|
} catch (err) {
|
|
96
98
|
setError(err instanceof Error ? err.message : "Auth failed");
|
|
@@ -103,7 +105,7 @@ function App() {
|
|
|
103
105
|
setPending(true);
|
|
104
106
|
setError(null);
|
|
105
107
|
try {
|
|
106
|
-
const start = new URL(`${api.url}/auth/google
|
|
108
|
+
const start = new URL(`${api.url}/api/user/auth/google`);
|
|
107
109
|
start.searchParams.set("redirect_uri", window.location.href);
|
|
108
110
|
const probe = await fetch(start.toString(), { redirect: "manual" });
|
|
109
111
|
if (probe.status === 503) {
|
|
@@ -208,7 +210,7 @@ function App() {
|
|
|
208
210
|
<input
|
|
209
211
|
type="password"
|
|
210
212
|
required
|
|
211
|
-
minLength={
|
|
213
|
+
minLength={12}
|
|
212
214
|
autoComplete={mode === "signup" ? "new-password" : "current-password"}
|
|
213
215
|
value={password}
|
|
214
216
|
onChange={(event) => setPassword(event.target.value)}
|
|
@@ -12,6 +12,6 @@ Local Vite reads `VITE_API_URL` from `.env` (written by `robodev create` / `robo
|
|
|
12
12
|
|
|
13
13
|
Docs: https://robodev.povio.dev/docs
|
|
14
14
|
|
|
15
|
-
`GET /me` (`api/me.ts`)
|
|
15
|
+
`GET /me` and `GET /api/me` (`api/me.ts`) require a Robodev Auth Bearer token. Planet and rocket routes stay public. Optional browser helper: `@robodev-ai/client`. Auth how-to: https://robodev.povio.dev/docs/auth
|
|
16
16
|
|
|
17
17
|
Edit files in the dashboard Code page, or here, then Save / `npx robodev deploy`.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"react": "^18.3.1",
|
|
13
13
|
"react-dom": "^18.3.1",
|
|
14
14
|
"@robodev-ai/sdk": "^0.6.0",
|
|
15
|
-
"@robodev-ai/client": "^0.
|
|
15
|
+
"@robodev-ai/client": "^0.3.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/react": "^18.3.24",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"@vitejs/plugin-react": "^4.7.0",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"vite": "^6.3.5",
|
|
23
|
-
"robodev": "^0.
|
|
23
|
+
"robodev": "^0.10.0"
|
|
24
24
|
}
|
|
25
25
|
}
|