Skip to content

Logout Method is not working with oauth2 #153

@wellingtonollv

Description

@wellingtonollv

Description

I'm using OAuth 2 for authentication:

auth.setDefaultHostConfig({
authType: "oauth2",
host: "tenant.us.qlikcloud.com",
clientId: "clientID",
});

getMyUser();

When I call the logout method (for example, from a button) using:

import { logout } from "@qlik/api/auth";

it redirects to my custom logout page, which is not protected and doesn’t require authentication.
However, the user is not actually logged out — if I navigate back or redirect to the main app page, it automatically logs in again.

✅ Expected Behavior

The user session should be fully terminated, requiring a new login when returning to the app.

❌ Actual Behavior

The session remains active, and the user is automatically logged in again when revisiting the app.

🤔 Question

Is this the expected behavior?

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