Test: Token auto-refresh for OAuth services #69

Open
opened 2026-05-29 04:12:38 +00:00 by jmiller · 1 comment
Owner

Test: Automatic Token Refresh

What changed

OAuthHelper::refreshTokenIfNeeded() checks token_expires and auto-refreshes before each publish.

Steps to test

  1. Connect a LinkedIn or Google service via OAuth
  2. Verify token_expires is stored in credentials JSON
  3. Manually set token_expires to a past timestamp in the database
  4. Publish an article → verify the system refreshes the token automatically
  5. Check Activity Logs for refresh activity

Expected

  • Expired tokens are refreshed transparently
  • New token is stored in the database
  • Post succeeds after refresh

Labels

type: testing, priority: high

## Test: Automatic Token Refresh ### What changed OAuthHelper::refreshTokenIfNeeded() checks token_expires and auto-refreshes before each publish. ### Steps to test 1. Connect a LinkedIn or Google service via OAuth 2. Verify token_expires is stored in credentials JSON 3. Manually set token_expires to a past timestamp in the database 4. Publish an article → verify the system refreshes the token automatically 5. Check Activity Logs for refresh activity ### Expected - Expired tokens are refreshed transparently - New token is stored in the database - Post succeeds after refresh ### Labels `type: testing`, `priority: high`
Author
Owner

Branch created: feature/69-test-token-auto-refresh-for-oauth-servic

git fetch origin
git checkout feature/69-test-token-auto-refresh-for-oauth-servic
Branch created: [`feature/69-test-token-auto-refresh-for-oauth-servic`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/69-test-token-auto-refresh-for-oauth-servic) ```bash git fetch origin git checkout feature/69-test-token-auto-refresh-for-oauth-servic ```
Sign in to join this conversation.
No labels
Type Task
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#69