Skip to content

feat: add token status and prepare 2.1.0 - #5

Merged
StefaniOSApps merged 1 commit into
mainfrom
feat/token-status
Oct 8, 2026
Merged

StefaniOSApps merged 1 commit into
mainfrom
feat/token-status

Conversation

@StefaniOSApps

@StefaniOSApps StefaniOSApps commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Add client.token.status() for the new GET /v1/token/status endpoint and prepare @energy-tracker/api-client 2.1.0. It returns the token's displayName, scopes and expiresAt, needs no scope and changes no data.

Known scopes are typed as TokenScope. A scope added by a newer backend stays a plain string instead of failing the response.

Merge after energy-tracker/api-client-python#7, then re-pin contracts/source.json to that commit on main.

@StefaniOSApps
StefaniOSApps force-pushed the feat/token-status branch 4 times, most recently from 3eee24e to 8c6a436 Compare October 8, 2026 23:00
Expose GET /v1/token/status as client.token.status(). It returns the token's
display name, granted scopes and expiry, needs no scope and changes no data.
Known scopes are typed as TokenScope; a scope added by a newer API stays a
plain string instead of failing the response.

Vendor the shared contract cases for the new operation from the Python
client and compare expiresAt as an instant.
@StefaniOSApps
StefaniOSApps merged commit 464eb2d into main Oct 8, 2026
4 checks passed
@StefaniOSApps
StefaniOSApps deleted the feat/token-status branch October 9, 2026 06:12
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