From 3dba094eeb5277bc52d02842e83dd9c8e939362d Mon Sep 17 00:00:00 2001 From: MgenGlder Date: Sat, 27 Dec 2025 16:34:58 -0500 Subject: [PATCH] fix: Use capital `Bearer` for Authorization header --- src/pages/Notes.tsx | 4 ++-- src/providers/AuthServiceProvider.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Notes.tsx b/src/pages/Notes.tsx index 2ed373e..f873914 100644 --- a/src/pages/Notes.tsx +++ b/src/pages/Notes.tsx @@ -36,7 +36,7 @@ const Notes: React.FC = () => { body: JSON.stringify({title: title, content: notes}), headers: { "Content-type": "application/json; charset=UTF-8", - "Authorization": `bearer ${token || ""}`, + "Authorization": `Bearer ${token || ""}`, } } ) @@ -61,7 +61,7 @@ const Notes: React.FC = () => { method: "GET", headers: { "Content-type": "application/json; charset=UTF-8", - "Authorization": `bearer ${token || ""}`, + "Authorization": `Bearer ${token || ""}`, }, } ) diff --git a/src/providers/AuthServiceProvider.tsx b/src/providers/AuthServiceProvider.tsx index abfd09b..2542c53 100644 --- a/src/providers/AuthServiceProvider.tsx +++ b/src/providers/AuthServiceProvider.tsx @@ -67,7 +67,7 @@ export const AuthServiceProvider: React.FC<{ children: React.ReactNode }> = ({ c method: "POST", headers: { "Content-Type": "application/json", - "Authorization": `bearer ${token}` + "Authorization": `Bearer ${token}` } }) .then(res => {