Toolbar: Infinite logout/login loop on preview routes
blakewilson opened this issue · comments
Blake Wilson commented
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
- Clone the
faustwp-getting-started
example - Setup your env vars
npm run dev
- In your WP backend, preview a post
- After you've been authenticated and can see the preview content, in the toolbar, logout
- 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
Blake Wilson commented
Screen recording of the issue: