Skip to content

Commit 85e537e

Browse files
kixelatedclaude
andcommitted
Drop PUBLIC_RELAY_TOKEN; bbb plays from /demo unauthenticated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0161dec commit 85e537e

4 files changed

Lines changed: 1 addition & 11 deletions

File tree

.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
PUBLIC_RELAY_URL="http://localhost:4443"
2-
PUBLIC_RELAY_TOKEN=""

.env.production

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
PUBLIC_RELAY_URL="https://cdn.moq.dev"
2-
# Generate with: cargo run --bin moq-token -- --key root.jwk sign --root "demo" --subscribe ""
3-
PUBLIC_RELAY_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb290IjoiZGVtbyIsImdldCI6WyIiXSwiZXhwIjpudWxsLCJpYXQiOm51bGx9.6EoN-Y1Ouj35_qV5FokcdcdderrE2navNbYQjJyR2Ac"
42
PUBLIC_CLOUDFLARE_URL="https://relay.cloudflare.mediaoverquic.com"

env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
interface ImportMetaEnv {
44
readonly PUBLIC_RELAY_URL: string;
5-
readonly PUBLIC_RELAY_TOKEN: string;
65
}
76

87
interface ImportMeta {

src/components/watch.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ export default function Watch() {
77
const params = new URLSearchParams(window.location.search);
88
const name = params.get("name") ?? "bbb";
99

10-
let url: URL;
11-
const token = import.meta.env.PUBLIC_RELAY_TOKEN;
12-
if (name === "bbb" && token) {
13-
url = new URL(`/demo?jwt=${token}`, import.meta.env.PUBLIC_RELAY_URL);
14-
} else {
15-
url = new URL("/anon", import.meta.env.PUBLIC_RELAY_URL);
16-
}
10+
const url = new URL(name === "bbb" ? "/demo" : "/anon", import.meta.env.PUBLIC_RELAY_URL);
1711

1812
return (
1913
<>

0 commit comments

Comments
 (0)