UNPKG

@aws-amplify/auth

Version:
14 lines (11 loc) 324 B
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 const SELF = '_self'; export const launchUri = (url: string) => { const windowProxy = window.open(url, SELF); if (windowProxy) { return Promise.resolve(windowProxy); } else { return Promise.reject(); } };