initWithOAuth

suspend fun initWithOAuth(clientId: String, clientSecret: String, config: OAuthConfig): FursuitTvSdk

Deprecated

Use the new initialization pattern: create SDK instance first, then call auth.initOAuth()

Replace with

FursuitTvSdk(clientId, clientSecret).apply { runBlocking { auth.initOAuth(config) } }

使用 OAuth 2.0 初始化 SDK(静态方法)

Return

FursuitTvSdk 实例

Parameters

clientId

客户端 ID(格式 vap_xxxx)

clientSecret

客户端密钥

config

OAuth 配置