I'm on medusa-js 1.0.7
I created a new app using create-medusa-app using the gatsby-medusa-starter, which gives me a storefront and the ability to sign in. So far so good. But I'd like to allow the user to log out. The clearCustomer method in customer-context.js doesn't delete the session, so as soon as the site fetches the current user again I can access the account details.
As far as I can see in the medusa-js package, there's no way to log out or delete a session that corresponds to the store logout method in the api.
Am I missing something or is this planned for a future release?
I'm on
medusa-js 1.0.7I created a new app using
create-medusa-appusing thegatsby-medusa-starter, which gives me a storefront and the ability to sign in. So far so good. But I'd like to allow the user to log out. TheclearCustomermethod incustomer-context.jsdoesn't delete the session, so as soon as the site fetches the current user again I can access the account details.As far as I can see in the
medusa-jspackage, there's no way to log out or delete a session that corresponds to the store logout method in the api.Am I missing something or is this planned for a future release?