dwave-cloud-client
dwave-cloud-client copied to clipboard
Add `AuthFlow` as token/auth source for `LeapAccount`/`LeapAPIClient`
Perhaps add .from_auth_flow() or similar:
flow = LeapAuthFlow.from_config(...)
account = LeapAccount.from_auth_flow(flow)
In addition (perhaps in a separate issue/pr), ensure token is refreshed when request fails with Unauthorized.