fix(medusa-js): JwtTokenManager.registerJwt for store domain (#5406)

* fixed issue

* Create three-squids-add.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
David Preininger
2023-10-18 13:10:53 +02:00
committed by GitHub
co-authored by Oli Juhl
parent e47461d95c
commit 98e2755514
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa-js": patch
---
Fix(medusa-js): Fix JwtTokenManager.register for store domain
+1 -1
View File
@@ -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
});