Skip to content

fix bluesky refresh token error#1036

Merged
Tlaster merged 1 commit intomasterfrom
bugfix/bsky_refresh_token
Jun 18, 2025
Merged

fix bluesky refresh token error#1036
Tlaster merged 1 commit intomasterfrom
bugfix/bsky_refresh_token

Conversation

@Tlaster
Copy link
Copy Markdown
Contributor

@Tlaster Tlaster commented Jun 18, 2025

No description provided.

@Tlaster Tlaster requested a review from Copilot June 18, 2025 07:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an error with the Bluesky refresh token by updating the refresh logic.

  • The refresh response body is now decoded from a String using the decodeJson extension.
  • The necessary import for decodeJson was added.
Comments suppressed due to low confidence (1)

shared/src/commonMain/kotlin/dev/dimension/flare/data/network/bluesky/BlueskyService.kt:150

  • The updated approach decodes the response body from a String using decodeJson. Consider adding explicit error handling for potential JSON decoding failures to prevent unexpected runtime exceptions.
                        val refreshed = refreshResponse.body<String>().decodeJson<RefreshSessionResponse>()

@Tlaster Tlaster enabled auto-merge June 18, 2025 07:22
@Tlaster Tlaster merged commit f0d0e54 into master Jun 18, 2025
5 checks passed
@Tlaster Tlaster deleted the bugfix/bsky_refresh_token branch June 18, 2025 07:43
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.

2 participants