OAuthApi

constructor(httpClient: HttpClient, challengeSelector: OAuthCodeChallengeMethodSelector, random: Random = CryptographyRandom, clock: Clock = Clock.System)

Construct a new OAuth API instance.

Parameters

httpClient

The HTTP client to use for requests.

challengeSelector

The strategy to select the code challenge method.

random

The random number generator to use for generating state and code challenges.

clock

The clock to use for generating timestamps.


constructor()

Construct a new instance using the Bluesky OAuth client and always using the "S256" code challenge method.