Enhancement: Bluesky re-authenticates on every post #97

Open
opened 2026-05-29 05:30:30 +00:00 by jmiller · 1 comment
Owner

Audit Finding H-7

Severity: Medium (performance)

Issue:
BlueskyService calls the createSession endpoint on every publish() call, generating a new JWT token each time. This adds ~500ms latency per post and may trigger rate limits.

Fix: Cache the session token in the credentials JSON with an expiry timestamp, and only re-authenticate when expired.

Files: BlueskyService.php

Label: priority: medium, type: enhancement

## Audit Finding H-7 **Severity:** Medium (performance) **Issue:** BlueskyService calls the `createSession` endpoint on every `publish()` call, generating a new JWT token each time. This adds ~500ms latency per post and may trigger rate limits. **Fix:** Cache the session token in the credentials JSON with an expiry timestamp, and only re-authenticate when expired. **Files:** `BlueskyService.php` **Label:** `priority: medium`, `type: enhancement`
Author
Owner

Branch created: feature/97-enhancement-bluesky-re-authenticates-on-

git fetch origin
git checkout feature/97-enhancement-bluesky-re-authenticates-on-
Branch created: [`feature/97-enhancement-bluesky-re-authenticates-on-`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/97-enhancement-bluesky-re-authenticates-on-) ```bash git fetch origin git checkout feature/97-enhancement-bluesky-re-authenticates-on- ```
Sign in to join this conversation.
No labels
Type Enhancement
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#97