Repository navigation
feat(wp-native-auth): persist browser handoff auth cookie by default - #128
Merged
Merged
Conversation
chubes4
marked this pull request as ready for review
November 24, 2026 17:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Browser handoffs now call wp_set_auth_cookie with $remember from the new documented filter wp_native_auth_browser_handoff_remember (default true, also passed WP_User and the handoff record), so users coming from the native app stay signed in after the browser quits. Two tests cover the default and the filter returning false. The filter is documented in SCHEMAS.md.
What changed
Verification
2-verify-4d78f4cca0be38f929ffed533ff556180b78872ad853bd105b87af689c025842.txt (
homeboy review test wp-native-auth): passed onb5ba85c. Basemain@f5a0a6bunchanged. 101448 ms; retained gate metadata.( if git diff --quiet --no-renames f5a0a6b -- ' (
( if git diff --quiet --no-renames f5a0a6b7dade88835cd9533d58a307548086cd44 -- ':(literal)plugins/wp-native-auth'; then…): passed onb5ba85c. Basemain@f5a0a6bunchanged. 14490 ms; retained gate metadata.repro: none (no repro gate was declared, so these gates do not prove the issue).
CI: pending
Cook run
5296cd6fc14a565cb1d4db087664ac44003302c85296cd6fc14a565cb1d4db087664ac44003302c8Delivery
Evidence
AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 16m39s.
Implementation and reviewer documentation were written by the AI, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.
Refs #127