powerplatform-dataverse-client 0.9.0

Unofficial Rust sdk for the Microsoft Dataverse (Power Platform) Web API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Token Refresh


`ServiceClient` refreshes access tokens automatically before making requests when the current token is close to expiry.

## Notes


- Client-credentials auth refreshes by requesting a new access token.
- Device-code auth refreshes by using the cached refresh token.
- The refresh threshold is currently five minutes before expiry.
- Refresh state is stored in the token cache used by the client.

## Sample Scenario


See [`samples/v1-features/src/scenarios/refresh_demo.rs`](../samples/v1-features/src/scenarios/refresh_demo.rs).