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 PreiningerandOli Juhl authored and GitHub committed 2023-10-18 13:10:53 +02:00
1 parent e47461d95c
commit 98e2755514
2 files changed
+6 -1

No files matched your search

+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
});