dwavesystems / dwavesystems/dwave-cloud-client

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

Open
#588 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
63
Forks
44
Avg merge
13h 45m
Merged PRs (30d)
1

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.