(
providerName?: string | undefined,
oauthRef?: KimiOAuthTokenRef | undefined,
)
| 133 | } |
| 134 | |
| 135 | async status( |
| 136 | providerName?: string | undefined, |
| 137 | oauthRef?: KimiOAuthTokenRef | undefined, |
| 138 | ): Promise<AuthStatus> { |
| 139 | const name = providerName ?? KIMI_CODE_PROVIDER_NAME; |
| 140 | const oauthHost = this.oauthHostFor(oauthRef); |
| 141 | const oauthKey = oauthRef?.key ?? this.defaultOAuthKey(undefined, oauthHost); |
| 142 | return { |
| 143 | providers: [ |
| 144 | { |
| 145 | providerName: name, |
| 146 | hasToken: await this.managerFor(name, oauthKey, oauthHost).hasToken(), |
| 147 | }, |
| 148 | ], |
| 149 | }; |
| 150 | } |
| 151 | |
| 152 | async login( |
| 153 | providerName?: string | undefined, |
no test coverage detected