Skip to content

Commit 2c1fe4c

Browse files
authored
fix: Allow getting the token from the SDK client (medusajs#13164)
1 parent 224eaed commit 2c1fe4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/js-sdk/src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export class Client {
179179
await this.setToken_(token)
180180
}
181181

182+
async getToken() {
183+
return await this.getToken_()
184+
}
185+
182186
async clearToken() {
183187
await this.clearToken_()
184188
}

0 commit comments

Comments
 (0)