mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-30 09:05:15 +01:00
fix(connections): offer Paperclip's Google sign-in on Paperclip Cloud only (#22699)
<!-- Write all pull request text in Simplified Technical English
(ASD-STE100): short sentences, one instruction per sentence, simple
approved vocabulary, and the active voice. -->
## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work
> - Agents use Google Workspace through a connection. A connection can
use Paperclip's own Google sign-in ("Connect with Paperclip") or the
customer's own Google OAuth client
> - Paperclip's own Google sign-in goes through the Paperclip Cloud
broker with Paperclip's verified Google client
> - Google's restricted-scope verification and security assessment cover
only the servers that Paperclip operates
> - The owner decided on 2026-11-23: Paperclip's own Google sign-in is
for Paperclip Cloud workspaces only. Self-hosted instances use their own
Google OAuth client
> - This pull request hides and refuses Paperclip's own Google sign-in
on self-hosted instances, keeps saved connections working, and gives
clear guidance
> - The benefit is that restricted-scope Google tokens stay on servers
that Paperclip operates, and self-hosted users always see a path that
works
## Linked Issues or Issue Description
Refs #22635
**What happened?**
A self-hosted Paperclip instance offered "Connect with Paperclip" for
Google Workspace and other Google apps. That sign-in uses Paperclip's
verified Google client. It sends restricted-scope Google tokens to a
server that Paperclip does not operate. A self-hosted instance also
offered Paperclip Cloud enrollment only to use that sign-in.
**What did you expect to happen?**
Paperclip's own Google sign-in is available only on Paperclip Cloud
workspaces. A self-hosted instance shows only "Use your own Google OAuth
app", with a short reason and a link to a setup guide. Saved Google
connections on a self-hosted instance keep working until a sunset date
that the owner sets on the Paperclip Cloud broker. After that date, the
connection tells the user to reconnect with their own Google client.
Paperclip Cloud workspaces do not change.
**Steps to reproduce**
1. Run Paperclip without Paperclip Cloud markers (self-hosted).
2. Turn on the Google Workspace connector in **Settings →
Experimental**.
3. Open **Apps** and choose **Google Workspace** or **Gmail**.
4. Before this change: setup offers "Connect with Paperclip" or asks to
connect the instance to Paperclip Cloud first.
## What Changed
- `packages/shared/src/google-sign-in-deployment.ts`: new
`appDefinitionForDeployment` and `isCloudOnlyConnectionMethod`. On a
self-hosted instance they remove every Paperclip-managed Google method.
Other providers do not change. New shared message
`GOOGLE_SIGN_IN_CLOUD_ONLY_MESSAGE`.
- `server/src/services/google-sign-in-availability.ts`:
`paperclipGoogleSignInAvailable()` returns `isCloudManagedInstance()`.
This is the existing single Cloud check. No new environment variable.
- `appWithPaperclipCloudConnectorAvailability` (gallery and setup
validation) uses that check. A self-hosted gallery and setup do not show
managed Google methods.
- `authorization-start.ts`: a self-hosted instance refuses to start a
managed Google authorization before it calls Paperclip Cloud (`422`,
code `google_sign_in_cloud_only`). A broker refusal with
`PROVIDER_CLOUD_ONLY` maps to the same message, also on a Cloud
instance.
- `paperclip-cloud-connector.ts`: `PROVIDER_CLOUD_ONLY` is a known
broker reason.
- `grant-refresh.ts`: when the broker refuses a refresh with
`PROVIDER_CLOUD_ONLY` (after the sunset), the grant is marked for
reconnection. The error keeps code `oauth_reauthorization_required`,
adds reason `google_sign_in_cloud_only`, and tells the user to reconnect
with their own Google OAuth client.
- `ConnectionSetupFlow.tsx`: on a self-hosted instance (no `cloud` block
in health), Google setup uses the filtered definition. It never shows
Cloud enrollment for Google. The customer-owned Google client step shows
this note and a link to Google's client guide.
- Docs: `doc/connections/GOOGLE-WORKSPACE.md` ("Who can use Paperclip's
Google sign-in", "Self-hosted instances: use your own Google client")
and a dated decision row in `doc/memory/google-connector-memory.md`.
- `tests/runner-e2e/source-sdk-public-inputs.json`: pins the new shared
files (generated).
## Verification
- Red first, then green:
- `packages/shared/src/google-sign-in-deployment.test.ts` fails without
the new module and passes with it (4 tests).
- With the source files from `origin/master`, these new tests fail: 2 in
`server/src/__tests__/tool-access-service.test.ts` (self-hosted refusal,
refresh guidance and saved-connection refresh; broker refusal mapping),
3 in `server/src/services/paperclip-cloud-connector.test.ts`, and the
self-hosted test in `ui/src/pages/apps/AppsConnect.test.tsx`. With the
change they pass.
- Cloud path proof: "never shows the self-hosted Google notice on
Paperclip Cloud" (UI), "leaves every app unchanged on Paperclip Cloud"
(shared, identity check on every definition), "decides Cloud or
self-hosted from the instance's Cloud markers" (server). All existing
managed Google service tests (515) pass in a Cloud context.
- `npx vitest run src/__tests__/tool-access-service.test.ts` (server):
517 passed.
- `npx vitest run src/services/paperclip-cloud-connector.test.ts`
(server): 71 passed.
- `npx vitest run src/pages/apps/AppsConnect.test.tsx
src/features/connections` (ui): all passed.
- `npx vitest run` for `agent-connection-catalog.integration`,
`tool-gateway-service`, `google-access-removal`,
`connection-management.integration`, `generic-mcp-connection`,
`remote-mcp-connectors` and `plugin-connectors-circleback-parity`
(server): 446 passed, 1 skipped.
- `npx vitest run` in `packages/shared`: 1383 passed.
- `pnpm verify` exits 2 because `doc/connections/GOOGLE-WORKSPACE.md` is
a global CI input. Required CI supplies the broad coverage.
- Not run: no requests to staging, production, or Google. The reconnect
of a saved managed Google connection on a self-hosted instance after the
sunset was not run end to end in a browser.
## Risks
- Behavior change for self-hosted instances: new Paperclip-managed
Google connections stop. Saved ones keep refreshing until the broker
sunset (not set yet).
- The decision uses `isCloudManagedInstance()`. If a Cloud workspace
does not have its Cloud markers, it shows the self-hosted path. Cloud
stacks always have the tenant token, so the risk is low.
- Works with old and new brokers. An old broker does not refuse. The app
check still hides and refuses the method. A new broker refuses
self-hosted instances, and the app maps the refusal to the same
guidance.
- Deploy order: the broker change (paperclip-cloud) and this change can
deploy in any order.
> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.
## Model Used
- Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with tool use
(shell, file edits, test runs).
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
980caf1167
commit
8c6e5cbbb8
20 files changed
+397
-37
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { isCloudManagedInstance } from "./cloud-instance.js";
|
||||
|
||||
export function paperclipGoogleSignInAvailable(): boolean {
|
||||
return isCloudManagedInstance();
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
} from "@paperclipai/shared";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { paperclipGoogleSignInAvailable } from "./google-sign-in-availability.js";
|
||||
|
||||
import {
|
||||
appWithPaperclipCloudConnectorAvailability,
|
||||
@@ -316,20 +317,57 @@ describe("Paperclip Cloud connector", () => {
|
||||
expect(managedGoogle.filter(({ method }) => (method.defaults?.scopesHint ?? []).some((value) => !submitted.has(value)))
|
||||
.map(({ id }) => id)).toEqual(savedConnectionsOnly);
|
||||
for (const app of APP_DEFINITIONS) {
|
||||
const offered = appWithPaperclipCloudConnectorAvailability(app, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS]);
|
||||
const offered = appWithPaperclipCloudConnectorAvailability(app, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS], true);
|
||||
for (const method of offered.methods.filter((candidate) => candidate.oauthStrategy === "paperclip_cloud_connector")) {
|
||||
expect(savedConnectionsOnly).not.toContain(`${app.slug}/${method.key}`);
|
||||
for (const value of method.defaults?.scopesHint ?? []) expect(submitted, `${app.slug}/${method.key}`).toContain(value);
|
||||
}
|
||||
}
|
||||
const gmail = appWithPaperclipCloudConnectorAvailability(APP_DEFINITIONS.find((app) => app.slug === "gmail")!, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS]);
|
||||
const gmail = appWithPaperclipCloudConnectorAvailability(APP_DEFINITIONS.find((app) => app.slug === "gmail")!, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS], true);
|
||||
expect(gmail.methods.map((method) => method.key)).toEqual([
|
||||
"paperclip-read", "customer-read-oauth", "paperclip-draft", "customer-draft-oauth", "customer-archive-oauth",
|
||||
]);
|
||||
const chat = appWithPaperclipCloudConnectorAvailability(APP_DEFINITIONS.find((app) => app.slug === "google-chat")!, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS]);
|
||||
const chat = appWithPaperclipCloudConnectorAvailability(APP_DEFINITIONS.find((app) => app.slug === "google-chat")!, [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS], true);
|
||||
expect(chat.ownershipAvailability?.platform_shared).toBe(false);
|
||||
});
|
||||
|
||||
it("offers Paperclip's Google sign-in only on Paperclip Cloud and keeps other managed methods", () => {
|
||||
const workspace = APP_DEFINITIONS.find((app) => app.slug === "google-workspace")!;
|
||||
const asana = APP_DEFINITIONS.find((app) => app.methods.some((method) => method.connectorProfile === "asana.mcp"))!;
|
||||
const advertised = [...GOOGLE_WORKSPACE_CONNECTOR_PROFILE_IDS, "asana.mcp"];
|
||||
const cloud = appWithPaperclipCloudConnectorAvailability(workspace, advertised, true);
|
||||
expect(cloud.methods.map((method) => method.key)).toEqual(["paperclip-workspace", "customer-workspace-oauth"]);
|
||||
expect(cloud.ownershipAvailability?.platform_shared).toBe(true);
|
||||
const selfHosted = appWithPaperclipCloudConnectorAvailability(workspace, advertised, false);
|
||||
expect(selfHosted.methods.map((method) => method.key)).toEqual(["customer-workspace-oauth"]);
|
||||
expect(selfHosted.ownershipAvailability?.platform_shared).toBe(false);
|
||||
expect(appWithPaperclipCloudConnectorAvailability(asana, advertised, false).methods)
|
||||
.toEqual(appWithPaperclipCloudConnectorAvailability(asana, advertised, true).methods);
|
||||
});
|
||||
|
||||
it("decides Cloud or self-hosted from the instance's Cloud markers", () => {
|
||||
vi.stubEnv("PAPERCLIP_CLOUD_TENANT_SERVER_TOKEN", "");
|
||||
vi.stubEnv("PAPERCLIP_MANAGED_CONFIG", undefined);
|
||||
try {
|
||||
expect(paperclipGoogleSignInAvailable()).toBe(false);
|
||||
vi.stubEnv("PAPERCLIP_CLOUD_TENANT_SERVER_TOKEN", "tenant-token-fixture");
|
||||
expect(paperclipGoogleSignInAvailable()).toBe(true);
|
||||
} finally {
|
||||
vi.unstubAllEnvs();
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps the broker's cloud-only refusal as a known reason", async () => {
|
||||
const connector = createPaperclipCloudConnector({
|
||||
config: config().config,
|
||||
request: vi.fn(async () => Response.json({ error: "PROVIDER_CLOUD_ONLY" }, { status: 409 })) as typeof fetch,
|
||||
});
|
||||
await expect(connector.refresh({ subject, companyId, profile: "workspace.all", refreshToken: "refresh-fixture" }))
|
||||
.rejects.toMatchObject({ code: "REAUTHORIZATION_REQUIRED", brokerReason: "PROVIDER_CLOUD_ONLY" });
|
||||
expect(await rejection(Response.json({ error: "PROVIDER_CLOUD_ONLY" }, { status: 403 })))
|
||||
.toMatchObject({ code: "CONNECTOR_REQUEST_FAILED", status: 403, brokerReason: "PROVIDER_CLOUD_ONLY" });
|
||||
});
|
||||
|
||||
it("signs selected Workspace scopes without substituting the full profile", async () => {
|
||||
const keys = config();
|
||||
const scopes = ["https://www.googleapis.com/auth/gmail.readonly"];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { assertMcpClientMirrorEnvelope } from "./public-mcp/client-mirror-wire.js";
|
||||
import { providerRetryAt } from "./provider-retry-after.js";
|
||||
import { SLACK_MANAGER_SCOPES, ASANA_CONNECTOR_SCOPES, isAsanaConnectorProfileId, type AsanaConnectorProfileId } from "@paperclipai/shared";
|
||||
import { SLACK_MANAGER_SCOPES, ASANA_CONNECTOR_SCOPES, appDefinitionForDeployment, isAsanaConnectorProfileId, type AsanaConnectorProfileId } from "@paperclipai/shared";
|
||||
import {
|
||||
createDecipheriv,
|
||||
createHash,
|
||||
@@ -160,7 +160,7 @@ const BROKER_REJECTION_REASONS = new Set([
|
||||
"REQUEST_EXPIRED", "REQUEST_REPLAYED", "SIGNATURE_REJECTED",
|
||||
"AUDIENCE_MISMATCH", "OPERATION_MISMATCH", "PAYLOAD_MISMATCH",
|
||||
"MALFORMED_REQUEST", "UNSUPPORTED_ALGORITHM", "RATE_LIMITED",
|
||||
"PROVIDER_OPERATION_FAILED", "PROVIDER_REAUTHORIZATION_REQUIRED", "REVOCATION_NOT_AVAILABLE",
|
||||
"PROVIDER_OPERATION_FAILED", "PROVIDER_REAUTHORIZATION_REQUIRED", "REVOCATION_NOT_AVAILABLE", "PROVIDER_CLOUD_ONLY",
|
||||
"SLACK_ENROLLMENT_GENERATION_CHANGED", "SLACK_ENROLLMENT_IDENTITY_CHANGED",
|
||||
"SLACK_ENROLLMENT_CHANGED", "SLACK_ENROLLMENT_UNSETTLED", "SLACK_ENROLLMENT_DISABLED",
|
||||
"SLACK_COMPANY_MISMATCH", "SLACK_EVENTS_UNAVAILABLE",
|
||||
@@ -836,9 +836,10 @@ export function isPaperclipCloudConnectorStrategy(value: unknown): boolean {
|
||||
export function appWithPaperclipCloudConnectorAvailability(
|
||||
app: AppDefinition,
|
||||
profiles: readonly string[],
|
||||
cloudHosted: boolean,
|
||||
): AppDefinition {
|
||||
const enabledProfiles = new Set(profiles);
|
||||
const methods = app.methods.filter((method) =>
|
||||
const methods = appDefinitionForDeployment(app, { cloudHosted }).methods.filter((method) =>
|
||||
!isPaperclipCloudConnectorStrategy(method.oauthStrategy)
|
||||
|| Boolean(method.connectorProfile && enabledProfiles.has(method.connectorProfile)
|
||||
&& paperclipCloudConnectorConsentAllowed(method.connectorProfile))
|
||||
|
||||
@@ -155,6 +155,7 @@ import { googleWorkspaceCatalogToolTitle } from "./google-workspace-rest-dispatc
|
||||
|
||||
import { createToolRuntimeSupervisor } from "./tool-runtime-supervisor.js";
|
||||
|
||||
import { paperclipGoogleSignInAvailable } from "./google-sign-in-availability.js";
|
||||
import { appWithPaperclipCloudConnectorAvailability, paperclipCloudConnectorCapabilitiesFromEnv, createPaperclipCloudConnector, isPaperclipCloudConnectorStrategy, paperclipCloudConnectorConfigFromEnv, type PaperclipCloudConnector } from "./paperclip-cloud-connector.js";
|
||||
import { createVercelConnectClient, deriveVercelConnectSubject, vercelConnectIntegrationStatus, type VercelConnectClient } from "./vercel-connect.js";
|
||||
|
||||
@@ -781,7 +782,7 @@ export function toolAccessService(
|
||||
const profiles = connectorWasProvided
|
||||
? (await currentCloudConnector()?.getCapabilities() ?? [])
|
||||
: await paperclipCloudConnectorCapabilitiesFromEnv();
|
||||
return appWithPaperclipCloudConnectorAvailability(app, profiles);
|
||||
return appWithPaperclipCloudConnectorAvailability(app, profiles, paperclipGoogleSignInAvailable());
|
||||
}
|
||||
const vercelConnect =
|
||||
options.vercelConnectClient === undefined
|
||||
|
||||
@@ -7,7 +7,8 @@ import { createOAuthEndpointPolicy } from "./endpoint-policy.js";
|
||||
import { createOAuthDiscovery } from "./discovery.js";
|
||||
import { asRecord, oauthConfig, normalizeOauthScopes, originOf } from "./metadata.js";
|
||||
import { connectionMethodForConnection } from "../connection-methods.js";
|
||||
import { googleWorkspaceDraftRequestedScopes, googleWorkspaceSelectedScopes, type GoogleWorkspaceServiceSelection, isGoogleWorkspaceScopeGrant } from "@paperclipai/shared";
|
||||
import { GOOGLE_SIGN_IN_CLOUD_ONLY_MESSAGE, googleWorkspaceDraftRequestedScopes, googleWorkspaceSelectedScopes, type GoogleWorkspaceServiceSelection, isGoogleWorkspaceScopeGrant } from "@paperclipai/shared";
|
||||
import { paperclipGoogleSignInAvailable } from "../../google-sign-in-availability.js";
|
||||
import { and, eq, lt } from "drizzle-orm";
|
||||
import type { Db } from "@paperclipai/db";
|
||||
import { companies, agents, connectionGrants, issueThreadInteractions, toolConnections, toolOauthStates } from "@paperclipai/db";
|
||||
@@ -36,8 +37,13 @@ type Dependencies = {
|
||||
assertOAuthEndpointUrl: ReturnType<typeof createOAuthEndpointPolicy>["assertOAuthEndpointUrl"];
|
||||
};
|
||||
|
||||
function cloudConnectorStartHttpError(error: unknown, providerName: string, at: Date): unknown {
|
||||
function googleSignInCloudOnlyError() {
|
||||
return unprocessable(GOOGLE_SIGN_IN_CLOUD_ONLY_MESSAGE, { code: "google_sign_in_cloud_only" });
|
||||
}
|
||||
|
||||
function cloudConnectorStartHttpError(error: unknown, provider: string, providerName: string, at: Date): unknown {
|
||||
if (!(error instanceof PaperclipCloudConnectorError)) return error;
|
||||
if (provider === "google" && error.brokerReason === "PROVIDER_CLOUD_ONLY") return googleSignInCloudOnlyError();
|
||||
if (error.status !== 429 && error.brokerReason !== "RATE_LIMITED") return error;
|
||||
const retryAfterSeconds = error.retryAt === undefined
|
||||
? undefined
|
||||
@@ -360,6 +366,7 @@ export function createOAuthAuthorizationStart(db: Db, dependencies: Dependencies
|
||||
if (!managedProfile)
|
||||
throw badRequest("This app has an invalid managed connector profile");
|
||||
const providerName = galleryEntry?.name ?? "Google Workspace";
|
||||
if (managedProfile.provider === "google" && !paperclipGoogleSignInAvailable()) throw googleSignInCloudOnlyError();
|
||||
if (!paperclipCloudConnectorConsentAllowed(managedProfile.id)) {
|
||||
throw unprocessable(
|
||||
`${providerName} can no longer be connected through Paperclip with these permissions. Connect Google Workspace, or set up ${providerName} with your own Google OAuth app.`,
|
||||
@@ -420,7 +427,7 @@ export function createOAuthAuthorizationStart(db: Db, dependencies: Dependencies
|
||||
returnState: state,
|
||||
});
|
||||
} catch (error) {
|
||||
throw cloudConnectorStartHttpError(error, providerName, now());
|
||||
throw cloudConnectorStartHttpError(error, managedProfile.provider, providerName, now());
|
||||
}
|
||||
const remoteExpiry = new Date(session.expiresAt);
|
||||
const expiresAt = Number.isFinite(remoteExpiry.getTime())
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { ActorInfo, DbTransaction } from "../types.js";
|
||||
import { withAccountHomeSecretMutationLock } from "@paperclipai/adapter-codex-local/server";
|
||||
import { createOAuthClientProtocol, storedOAuthTokenEndpointAuthMethod } from "./client.js";
|
||||
import { oauthConfig, normalizeOauthScopes, resolveGrantedOauthScopes } from "./metadata.js";
|
||||
import { googleWorkspaceEffectiveScopes, googleWorkspaceSubmittedScopesIn, isGoogleWorkspaceScopeGrant } from "@paperclipai/shared";
|
||||
import { GOOGLE_SIGN_IN_CLOUD_ONLY_MESSAGE, googleWorkspaceEffectiveScopes, googleWorkspaceSubmittedScopesIn, isGoogleWorkspaceScopeGrant } from "@paperclipai/shared";
|
||||
import { emitConnectionUpdated } from "../../connector-telemetry.js";
|
||||
import { and, eq, sql } from "drizzle-orm";
|
||||
import type { Db } from "@paperclipai/db";
|
||||
@@ -149,9 +149,12 @@ export function createOAuthGrantRefresh(db: Db, { now, store, leases, currentClo
|
||||
throw new PaperclipCloudConnectorError("Google did not return verifiable permissions", "REAUTHORIZATION_REQUIRED");
|
||||
}
|
||||
} catch (error) {
|
||||
const cloudOnly = error instanceof PaperclipCloudConnectorError
|
||||
&& profile.provider === "google"
|
||||
&& error.brokerReason === "PROVIDER_CLOUD_ONLY";
|
||||
if (
|
||||
error instanceof PaperclipCloudConnectorError &&
|
||||
error.code === "REAUTHORIZATION_REQUIRED"
|
||||
(error.code === "REAUTHORIZATION_REQUIRED" || cloudOnly)
|
||||
) {
|
||||
await db
|
||||
.update(connectionGrants)
|
||||
@@ -163,9 +166,10 @@ export function createOAuthGrantRefresh(db: Db, { now, store, leases, currentClo
|
||||
),
|
||||
);
|
||||
throw unprocessable(
|
||||
"Managed authorization must be reconnected",
|
||||
cloudOnly ? `Reconnect required. ${GOOGLE_SIGN_IN_CLOUD_ONLY_MESSAGE}` : "Managed authorization must be reconnected",
|
||||
{
|
||||
code: "oauth_reauthorization_required",
|
||||
...(cloudOnly ? { reason: "google_sign_in_cloud_only" } : {}),
|
||||
setupUrl: connectionSetupUrl(connection),
|
||||
reconnectUrl: connectionReconnectUrl(connection),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user