Skip to content

Logout Function Error "Invalid Payload" #254

Closed
@pvenableh

Description

@pvenableh

Version

nuxt-directus-next: 0.0.14
nuxt: 3.11.1

Steps to reproduce

Login with simple function:

async function attemptLogin() {
   const result = await login(email, password);
}

Successfully logs in and creates two cookies: 'directus_access_token' and 'directus_refresh_token'.

Attempt logout with simple function:

const handleLogout = async () => {
    await logoutUser();
})

What is Expected?

Expected to logout user and remove tokens.

Error response: "Invalid payload. The refresh token is required in either the payload or cookie."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions