From b02bf1018a5f0469835f85d4b8994647da55e18d Mon Sep 17 00:00:00 2001 From: sianida26 Date: Sun, 5 May 2024 13:38:09 +0700 Subject: [PATCH] Replace hard coded auth token --- apps/frontend/src/honoClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/honoClient.ts b/apps/frontend/src/honoClient.ts index 13f409f..7cbd554 100644 --- a/apps/frontend/src/honoClient.ts +++ b/apps/frontend/src/honoClient.ts @@ -3,7 +3,7 @@ import { AppType } from "backend"; const client = hc("http://localhost:3000", { headers: { - Authorization: `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJkeG5icHQ0N3BwdXZ6NW1vbTF1NjF5cnMiLCJpYXQiOjE3MTQ1NjY4MDB9.920-iiSuLiPK0t0GiWIuT_n8BHngPxp1FyvYZ7SBJ7E`, + Authorization: `Bearer ${localStorage.getItem("accessToken")}`, }, });