| 209 | } |
| 210 | |
| 211 | export class OAuthCompleteError |
| 212 | extends Schema.TaggedErrorClass<OAuthCompleteError>()("OAuthCompleteError", { |
| 213 | message: Schema.String, |
| 214 | /** True when the auth-code exchange failed in a way the user must restart. */ |
| 215 | restartRequired: Schema.optional(Schema.Boolean), |
| 216 | }) |
| 217 | implements UserActionableError |
| 218 | { |
| 219 | readonly __executorUserActionable = true; |
| 220 | readonly code = "oauth_complete_error"; |
| 221 | |
| 222 | get userMessage(): string { |
| 223 | return this.message; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | export class OAuthProbeError |
| 228 | extends Schema.TaggedErrorClass<OAuthProbeError>()("OAuthProbeError", { |
nothing calls this directly
no outgoing calls
no test coverage detected