Skip to content

Fix for refresh tokens#52

Merged
augustas2 merged 1 commit intoaugustas2:masterfrom
me0s:patch-1
Aug 11, 2025
Merged

Fix for refresh tokens#52
augustas2 merged 1 commit intoaugustas2:masterfrom
me0s:patch-1

Conversation

@me0s
Copy link
Copy Markdown
Contributor

@me0s me0s commented Jul 31, 2025

Refresh tokens include a did property (device identifier).
If this value is an empty string, the /auth/token endpoint returns a 401 Unauthorized error:

{
  "error": "BadCredentialsException",
  "errorMassage": "Token id is invalid"
}

Providing any non-empty hostDeviceId during login ensures that the did field is set in the refresh token, allowing token refresh to succeed.

This should fix:
#48 and #51

@augustas2 augustas2 merged commit 0ef86b1 into augustas2:master Aug 11, 2025
1 check passed
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.

3 participants