dwave-cloud-client icon indicating copy to clipboard operation
dwave-cloud-client copied to clipboard

Add `AuthFlow` as token/auth source for `LeapAccount`/`LeapAPIClient`

Open randomir opened this issue 2 years ago • 0 comments

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.

randomir avatar Oct 04 '23 12:10 randomir