feat: Implement token-based authentication for user data endpoints.

This commit is contained in:
2025-11-30 21:55:01 +01:00
parent 73791a0760
commit 0222332d3f
3 changed files with 43 additions and 3 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ function App() {
useEffect(() => {
if (!token) return;
fetch("/api")
fetch("/api", {
headers: {
Authorization: `Bearer ${token}`,
},
})
.then((res) => res.arrayBuffer())
.then((buffer) => {
const list = PersonList.decode(new Uint8Array(buffer));