fix(core): drop SSO link from Console sign-in error (#52062)

This commit is contained in:
Victor Navarro
2026-09-29 12:04:27 +02:00
committed by GitHub
parent d76f968c60
commit b29dab3231
2 changed files with 3 additions and 3 deletions
@@ -73,7 +73,7 @@ class SsoRequiredError extends Schema.TaggedError<SsoRequiredError>()("OpencodeC
url: Schema.String,
}) {
override get message() {
return `${ssoMessage(this.organization)}: ${this.url}`
return `${ssoMessage(this.organization)}.`
}
}
@@ -441,7 +441,7 @@ export const OpencodePlugin = define<HttpClient.HttpClient | Bus.Service | Manag
{
error: {
type: "authentication_error",
message: status.url ? `${status.message}: ${status.url}` : `${status.message}.`,
message: `${status.message}.`,
},
},
{ status: event.response.status },
@@ -1017,7 +1017,7 @@ describe("OpencodePlugin", () => {
body: {
error: {
type: "authentication_error",
message: `Sign in with SSO again to use Acme: ${server.url.origin}/auth/sso/ssoconn_1/start?redirectTo=%2F`,
message: "Sign in with SSO again to use Acme.",
},
},
}