Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup new access token when working on one client object? #97

Open
blasbike opened this issue Jun 16, 2024 · 0 comments
Open

How to setup new access token when working on one client object? #97

blasbike opened this issue Jun 16, 2024 · 0 comments

Comments

@blasbike
Copy link

blasbike commented Jun 16, 2024

I like the library and the separation approach.
My use case seems typical but is not easy to implement with the flow needed by this lib.
I have several strava events registered by webhook and I process them asynchronously in a batch.
Each event might be on behalf of different athlete.
So I need to initialize one Client and then setup access token per API call. But the Client depends on REST which has that token.
Any ideas how to achieve that? Something like Client::setToken()?

In my other project I use iamstuartwilson/strava which supports full flow (integrated) but lacks other stuff (like streams).

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

No branches or pull requests

1 participant