Skip to content

Can't see customer log out method in medusa-js package #1391

@gregorymark

Description

@gregorymark

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions