Skip to main content
Glama
GoogleButton.test.tsx707 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { locationUtils } from '@medplum/core'; import { getGoogleClientId } from './GoogleButton.utils'; describe('GoogleButton', () => { test('googleClientId', () => { expect(getGoogleClientId('foo')).toStrictEqual('foo'); locationUtils.getOrigin = () => 'https://app.medplum.com'; process.env.GOOGLE_AUTH_ORIGINS = 'https://app.medplum.com'; process.env.GOOGLE_CLIENT_ID = 'foo'; expect(getGoogleClientId(undefined)).toStrictEqual('foo'); locationUtils.getOrigin = () => 'https://evil.com'; expect(getGoogleClientId(undefined)).toBeUndefined(); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server