BlueskyAuthPlugin

class BlueskyAuthPlugin(json: Json, authTokens: MutableStateFlow<BlueskyAuthPlugin.Tokens?>)

Appends the Authorization header to XRPC requests, as well as automatically refreshing and replaying a network request if it fails due to an expired access token.

Constructors

Link copied to clipboard
constructor(json: Json, authTokens: MutableStateFlow<BlueskyAuthPlugin.Tokens?>)

Types

Link copied to clipboard
Link copied to clipboard
class Config(var json: Json = BlueskyJson, var authTokens: MutableStateFlow<BlueskyAuthPlugin.Tokens?> = MutableStateFlow(null))
Link copied to clipboard
data class Tokens(val auth: String, val refresh: String)