Automattic / Automattic/simplenote-electron

Logging in with WordPress works only after two successful attempts

Open
#2,389 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

Logging in with WordPress on app.simplenote.com works only after two successful attempts in case User never used app.simplenote.com in the current browser, deleted cookies or using an incognito mode.

### Expected
Expected to be logged in after the first successful attempt.

### Observed
The same Login screen is presented after the first successful attempt.

### Reproduced
1. Either remove all cookies for app.simplenote.com or open an incognito window
2. Open app.simplenote.com
2. Use "Log in with WordPress.com", login and let Simplenote to use WordPress account (approve)
3. Observe that you're redirected to Login screen
4. Use "Log in with WordPress.com", login and let Simplenote to use WordPress account (approve)
5. You're now logged in and can work with notes

### Where did you see the bug
- System Make:
- System Model:
- OS: macOS
- OS version: Catalina
- Browser (if applicable): Safari and Chrome
- Browser version (if applicable):
- Simplenote app version:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the flow at app.simplenote.com in an incognito window or with cookies removed, using the “Log in with WordPress.com” entry point. Trace why the first approved login returns to the Login screen, and verify that one successful approval logs the user in and allows access to notes.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript, wordpress
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.