UNPKG

amazon-cognito-identity-js

Version:

Amazon Cognito Identity Provider JavaScript SDK

23 lines (18 loc) 489 B
/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { version } from './version'; const BASE_USER_AGENT = `aws-amplify/${version}`; export const Platform = { userAgent: BASE_USER_AGENT, isReactNative: typeof navigator !== 'undefined' && navigator.product === 'ReactNative', }; export const getUserAgent = () => { return Platform.userAgent; }; /** * @deprecated use named import */ export default Platform;