* Adds a header for Bearer authentication * * ```js * // we use secret function to hide token from logs * I.amBearerAuthenticated(secret('heregoestoken')) * ``` * * @param {string | CodeceptJS.Secret} accessToken Bearer access token
(accessToken)
| 177 | * @param {string | CodeceptJS.Secret} accessToken Bearer access token |
| 178 | */ |
| 179 | amBearerAuthenticated(accessToken) { |
| 180 | this.haveRequestHeaders({ Authorization: `Bearer ${accessToken}` }) |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Executes axios request |
no test coverage detected