You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #1740, useAuth should not invoke the token endpoint on every request. This succeeds on default preview behavior (see this code), but when using useAuth, this behavior is still occurring.
Description
After #1740,
useAuth
should not invoke the token endpoint on every request. This succeeds on default preview behavior (see this code), but when usinguseAuth
, this behavior is still occurring.Steps to reproduce
custom-toolbar
example projectnpm install @faustwp/core@canary @faustwp/cli@canary
useAuth
hookAdditional context
We need to check within the
useAuth
hook for the reference cookie, and if its value is0
, return early.@faustwp/core Version
canary
@faustwp/cli Version
canary
FaustWP Plugin Version
N/A
WordPress Version
N/A
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
The text was updated successfully, but these errors were encountered: