Skip to content

Make raw_access_token async to support non-blocking use in async contexts #238

Description

@johnnymetz

Description

Currently, accessing client.raw_access_token appears to perform a blocking network call to fetch the OAuth token. This blocks the event loop when used inside async applications.

Proposed solution:

  • Provide an async variant, e.g. await client.raw_access_token, or
  • Lazily initialize and refresh the token via an async mechanism under the hood when using AsyncPipedream.

This would make the SDK safer to use in async frameworks (e.g. FastAPI, Django ASGI) without blocking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions