Skip to content

Refactor GetAssetJWT and GetVehicleJWT to use common exchangeToken helper#109

Merged
JamesReate merged 2 commits intomainfrom
refactor-dimoauth-jwt-exchange
Apr 8, 2026
Merged

Refactor GetAssetJWT and GetVehicleJWT to use common exchangeToken helper#109
JamesReate merged 2 commits intomainfrom
refactor-dimoauth-jwt-exchange

Conversation

@JamesReate
Copy link
Copy Markdown
Member

This PR refactors GetAssetJWT and GetVehicleJWT in pkg/dimoauth/service.go to eliminate redundant code by introducing a private helper method exchangeToken to handle common token exchange logic.

…xchangeToken helper

Co-authored-by: Junie <junie@jetbrains.com>
@JamesReate JamesReate requested a review from a team as a code owner April 8, 2026 02:47
@JamesReate JamesReate requested a review from elffjs April 8, 2026 02:48
@JamesReate JamesReate merged commit 11e147b into main Apr 8, 2026
2 checks passed
@JamesReate JamesReate deleted the refactor-dimoauth-jwt-exchange branch April 8, 2026 13:57
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