feat(medusa-js): Add deleteSession endpoint (#1234)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa-js": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add deleteSession endpoint
|
||||||
@@ -18,6 +18,15 @@ class AuthResource extends BaseResource {
|
|||||||
return this.client.request("POST", path, payload, {}, customHeaders)
|
return this.client.request("POST", path, payload, {}, customHeaders)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Removes authentication session
|
||||||
|
* @return {ResponsePromise<void>}
|
||||||
|
*/
|
||||||
|
deleteSession(customHeaders: Record<string, any> = {}): ResponsePromise<void> {
|
||||||
|
const path = `/store/auth`
|
||||||
|
return this.client.request("DELETE", path, {}, {}, customHeaders)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Retrieves an authenticated session
|
* @description Retrieves an authenticated session
|
||||||
* Usually used to check if authenticated session is alive.
|
* Usually used to check if authenticated session is alive.
|
||||||
|
|||||||
Reference in New Issue
Block a user