Skip to content

Add support for master token authentication#52

Open
Flavien06 wants to merge 1 commit intoNekmo:developfrom
Flavien06:patch-1
Open

Add support for master token authentication#52
Flavien06 wants to merge 1 commit intoNekmo:developfrom
Flavien06:patch-1

Conversation

@Flavien06
Copy link

@Flavien06 Flavien06 commented Jan 30, 2026

Add support for master token authentication

  • Add support for master_token in auth.json in addition to password
  • Modify get_credentials() to return username, password, and master_token
  • Modify login_or_input() to use keep.resume() when master_token is available
  • Modify save_credentials() to support saving master_token
  • Maintain backward compatibility with existing password-based authentication

This fixes authentication issues caused by Google's security changes that have made password-based login unreliable. Users can now authenticate using a master token with keep.resume() which provides more stable authentication.

References:

Authentication file format (~/.config/gkeep/auth.json): {
"username": "user@example.com",
"master_token": "aas_et/XXXXXXXXXXXXXXXXXXXX"
}

PS: I use ClaudeIA to help with code.

Add support for master token authentication

- Add support for master_token in auth.json in addition to password
- Modify get_credentials() to return username, password, and master_token
- Modify login_or_input() to use keep.resume() when master_token is available
- Modify save_credentials() to support saving master_token
- Maintain backward compatibility with existing password-based authentication

This fixes authentication issues caused by Google's security changes that
have made password-based login unreliable. Users can now authenticate using
a master token with keep.resume() which provides more stable authentication.

References:
- https://gkeepapi.readthedocs.io/en/latest/#authenticating
- https://github.com/rukins/gpsoauth-java/blob/b74ebca999d0f5bd38a2eafe3c0d50be552f6385/README.md#receiving-an-authentication-token

Authentication file format (~/.config/gkeep/auth.json):
{
  "username": "user@example.com",
  "master_token": "aas_et/XXXXXXXXXXXXXXXXXXXX"
}
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.

1 participant