From ee6c06c6f51360289eba8dd70e0798d853b5b31a Mon Sep 17 00:00:00 2001 From: Sam Cheng Hung Date: Thu, 23 Mar 2023 13:26:20 +0800 Subject: [PATCH] docs: Updates README.md Updates README.md sample code for using access token (function-based) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 350d875b..050e1353 100644 --- a/README.md +++ b/README.md @@ -356,7 +356,7 @@ export default MessageList = () => { try { const response = await fetch('http://localhost:{serverPort}/api/messages', { headers: { - Authorization: 'Bearer ' + authState.accessToken.accessToken + Authorization: 'Bearer ' + authState.accessToken } }); const data = await response.json();