{"version":3,"file":"onTokenReceived.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onTokenReceived.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PlatformNotSupportedError } from '@aws-amplify/core/internals/utils';\n/**\n * Registers a listener that will be triggered when a token is received. A token will be received:\n *   1. On every app launch, including the first install\n *   2. When a token changes (this may happen if the service invalidates the token for any reason)\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @param {OnTokenReceivedInput} input - A callback handler to be invoked with the token.\n * @returns {OnTokenReceivedOutput} - An object with a remove function to remove the listener.\n * @example\n * ```ts\n * // Register a listener\n * onTokenReceived(message => {\n *   doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onTokenReceived(message => {\n *   doSomething(message);\n * });\n *\n * onTokenReceived(message => {\n *   doSomethingElse(message);\n * });\n * ```\n */\nexport const onTokenReceived = () => {\n    throw new PlatformNotSupportedError();\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,eAAe,GAAG,MAAM;AACrC,IAAI,MAAM,IAAI,yBAAyB,EAAE;AACzC;;;;"}