From 88cad3a28bb6ba0bef10ea0e670a897b05724c9e Mon Sep 17 00:00:00 2001 From: Elaine Rice <132877355+ElaineRiceFCCA@users.noreply.github.com> Date: Thu, 20 Mar 2025 20:16:46 +0000 Subject: [PATCH] ESLint warning ESLint warning -> it's generally recommended to use dot notation --- unit-2-apis/topic-10-jwt/side-unit/book-1/04.04.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit-2-apis/topic-10-jwt/side-unit/book-1/04.04.md b/unit-2-apis/topic-10-jwt/side-unit/book-1/04.04.md index c3b5c1e..5c28b35 100644 --- a/unit-2-apis/topic-10-jwt/side-unit/book-1/04.04.md +++ b/unit-2-apis/topic-10-jwt/side-unit/book-1/04.04.md @@ -48,12 +48,12 @@ In our test infrastructure, extend playtime-service to include new methods to au ~~~javascript async authenticate(user) { const response = await axios.post(`${this.playtimeUrl}/api/users/authenticate`, user); - axios.defaults.headers.common["Authorization"] = "Bearer " + response.data.token; + axios.defaults.headers.common.Authorization = `Bearer ${response.data.token}`; return response.data; }, async clearAuth() { - axios.defaults.headers.common["Authorization"] = ""; + axios.defaults.headers.common.Authorization = ""; } ~~~