Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@johnnymetz

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.

Metadata

Metadata

Assignees

No one assigned

    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