@aws-amplify/auth
Version:
Auth category of aws-amplify
16 lines (14 loc) • 487 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.openAuthSession = void 0;
const openAuthSession = async (url) => {
if (!window?.location) {
return;
}
// enforce HTTPS
window.location.href = url.replace('http://', 'https://');
};
exports.openAuthSession = openAuthSession;
//# sourceMappingURL=openAuthSession.js.map
;