diff --git a/src/user.js b/src/user.js index 1e0d03e3..f8efe472 100644 --- a/src/user.js +++ b/src/user.js @@ -113,10 +113,10 @@ export default class User { try { const token = await this.jwt(); return await this.api.request(path, { + ...options, headers: Object.assign(options.headers, { Authorization: `Bearer ${token}`, }), - ...options, }); } catch (error) { if (error instanceof JSONHTTPError && error.json) {