Skip to content

Commit

Permalink
fix(medusa-js): JwtTokenManager.registerJwt for store domain (#5406)
Browse files Browse the repository at this point in the history
* fixed issue

* Create three-squids-add.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
  • Loading branch information
dPreininger and olivermrbl authored Oct 18, 2023
1 parent e47461d commit 98e2755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/three-squids-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa-js": patch
---

Fix(medusa-js): Fix JwtTokenManager.register for store domain
2 changes: 1 addition & 1 deletion packages/medusa-js/src/resources/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AuthResource extends BaseResource {
const path = `/store/auth/token`
return this.client.request("POST", path, payload, {}, customHeaders)
.then((res) => {
JwtTokenManager.registerJwt(res.data.access_token, "store");
JwtTokenManager.registerJwt(res.access_token, "store");

return res
});
Expand Down

0 comments on commit 98e2755

Please sign in to comment.