Skip to content

Commit

Permalink
fix: return token instead of bearertoken (#834)
Browse files Browse the repository at this point in the history
Co-authored-by: cognite-ornellas <rodrigo.ornellas@cognite.com>
  • Loading branch information
cognite-ornellas and cognite-ornellas committed Jul 7, 2022
1 parent 105a4bd commit 2829149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/baseCogniteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default class BaseCogniteClient {
} else {
const bearer = bearerString(token);
this.httpClient.setDefaultHeader(AUTHORIZATION_HEADER, bearer);
return bearer;
return token;
}
} catch {
return;
Expand Down

0 comments on commit 2829149

Please sign in to comment.