You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d0dbba
Browse filesBrowse the repository at this point in the historyBrowse files
fix: rotate every server that shares a project's token folder
Servers that run the same project, such as the Vite plugin and pangular
dev, share the private token folder. The first one to see a rotation
request deleted it, so the others kept their trusted tokens while the
command reported success. Each server now keeps a heartbeat and writes
its own answer for a request without deleting it; the command waits for
every server with a fresh heartbeat, deletes the request and answers,
prints each code and says how many servers did not answer in time.
Copy file name to clipboardExpand all lines: apps/docs/src/content/getting-started/cli.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,9 +237,9 @@ New one-time code: 482913 (expires in 5 min)
237
237
Enter it in the panel to connect again.
238
238
```
239
239
240
-
Run it in the project folder, or pass `--root`. It works with every server that runs the project: the standalone CLI, the Vite plugin and the Express hub. The running server drops the tokens it holds, stops trusting the panels and pages that used them, and makes the new code, which also ends a lock after too many wrong codes. Each panel then asks for the code again. If no server runs, the command still drops the tokens and says so. The server prints a new code when it starts.
240
+
Run it in the project folder, or pass `--root`. It works with every server that runs the project: the standalone CLI, the Vite plugin and the Express hub. The running server drops the tokens it holds, stops trusting the panels and pages that used them, and makes the new code, which also ends a lock after too many wrong codes. Each panel then asks for the code again. If no server runs, the command still drops the tokens and says so. The server prints a new code when it starts. When several servers run the project, such as the Vite plugin and `pangular dev`, the command waits for each of them and prints the code of each. A server that doesn't answer within 3 seconds is counted in the output, and it keeps its tokens until you run the command again or restart it.
241
241
242
-
The command and the server pass the request and the code through two files in the project's private token folder (`~/.pangular-inspector/auth/<project>/`, readable by you only). The command deletes the file with the code once it printed it. See [Security](../security.md) for how the tokens are stored.
242
+
The command and the servers pass the request and the codes through files in the project's private token folder (`~/.pangular-inspector/auth/<project>/`, readable by you only): a request, one answer per server, and a heartbeat per running server. The command deletes the request and the answers, which hold the codes, once it printed them. See [Security](../security.md) for how the tokens are stored.
-`pangular dev` takes `--proxy-origin`, `--allowed-origin` and `--auth-token`.
181
181
-`pangular build` refuses an `--outDir` that would delete files that are not a previous report, unless `--force` is passed.
182
182
- The source scan reads Nx projects.
183
-
-`pangular token --rotate` drops every trusted token of the project and prints a new one-time code from the running server (the CLI, the Vite plugin or the Express hub), which also ends a lock after too many wrong codes. `pangular token` prints how many tokens there are.
183
+
-`pangular token --rotate` drops every trusted token of the project and prints a new one-time code from each running server (the CLI, the Vite plugin or the Express hub, several at once when they share the project), which also ends a lock after too many wrong codes. `pangular token` prints how many tokens there are.
184
184
- The CLI start-up output names the NativeScript setup view (`?view=nativescript`) next to the Angular Native one.
0 commit comments