Skip to content

Fix WPCC redirect#3281

Merged
codebykat merged 3 commits into
trunkfrom
fix/wpcc
Jan 6, 2025
Merged

Fix WPCC redirect#3281
codebykat merged 3 commits into
trunkfrom
fix/wpcc

Conversation

@codebykat

@codebykat codebykat commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

Fix

Fixes #3278

A bit of a typo / copypasta was introduced in #3246 that caused the auth state (checksum) to be overwritten before the request was handled and verified. If we keep it as a locally-scoped const rather than a state variable, authentication works again.

Test

  1. n.b. Make sure you are logged out of app.simplenote.com, or it won't redirect back to the app
  2. Download the build artifact from this PR
  3. Sign in via WordPress.com
  4. Approve the request and login should succeed

Release

RELEASE-NOTES.md was updated with:

Fix WordPress.com login on the Electron builds

@codebykat codebykat self-assigned this Jan 3, 2025
@codebykat codebykat marked this pull request as ready for review January 3, 2025 07:42
@codebykat codebykat changed the title [WIP] Try to fix WPCC redirect Fix WPCC redirect Jan 3, 2025
@codebykat codebykat requested a review from roundhill January 3, 2025 07:42

@roundhill roundhill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked great and code LGTM!

@codebykat codebykat merged commit cf9c7cb into trunk Jan 6, 2025
@codebykat codebykat deleted the fix/wpcc branch January 6, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Log in with WordPress" fails in macos 2.22.2

2 participants