UNPKG

@aws-amplify/auth

Version:
1 lines 641 B
{"version":3,"file":"openAuthSession.mjs","sources":["../../../src/utils/openAuthSession.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const openAuthSession = async (url) => {\n if (!window?.location) {\n return;\n }\n // enforce HTTPS\n window.location.href = url.replace('http://', 'https://');\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,eAAe,GAAG,OAAO,GAAG,KAAK;AAC9C,IAAI,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;AAC3B,QAAQ;AACR;AACA;AACA,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC;AAC7D;;;;"}