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 = ""; } ~~~