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