wpengine / faustjs

Faust.js™ - The Headless WordPress Framework

Home Page:https://faustjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toolbar: Infinite logout/login loop on preview routes

blakewilson opened this issue · comments

Description

When logging out of the toolbar from a preview route, it logs the user out, then automatically logs them back in.

Steps to reproduce

  1. Clone the faustwp-getting-started example
  2. Setup your env vars
  3. npm run dev
  4. In your WP backend, preview a post
  5. After you've been authenticated and can see the preview content, in the toolbar, logout
  6. Notice after logging out, you are logged back in

Additional context

No response

@faustwp/core Version

2.1.2

@faustwp/cli Version

2.0.0

FaustWP Plugin Version

1.2.1

WordPress Version

6.4.3

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Screen recording of the issue:

Logout.login.loop.on.preview.pages.mov