@aws-amplify/auth
Version:
Auth category of aws-amplify
14 lines (11 loc) • 324 B
text/typescript
// 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();
}
};