Skip to content

Commit f24db6f

Browse files
authored
fix(runtime): fix debug token error (#793)
1 parent f06b4bb commit f24db6f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

runtimes/nodejs/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,8 @@ telepresence leave APPID-APPID
6262
- `telepresence helm install` failed for `arm64/Apple Chip` cluster:
6363

6464
```bash
65-
telepresence helm install --set image.name=pentusha/telepresence-ubuntu-multiarch --set image.registry=docker.io --set image.tag=2.10.4
66-
```
65+
telepresence helm install \
66+
--set image.name=pentusha/telepresence-ubuntu-multiarch \
67+
--set image.registry=docker.io \
68+
--set image.tag=2.10.4
69+
```

runtimes/nodejs/src/handler/debug-func.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function handleDebugFunction(req: IRequest, res: Response) {
2323
return res.status(400).send('x-laf-develop-token is required')
2424
}
2525
const auth = parseToken(token) || null
26-
if (auth?.type !== 'debug') {
26+
if (auth?.type !== 'develop') {
2727
return res.status(403).send('permission denied: invalid debug token')
2828
}
2929

0 commit comments

Comments
 (0)