@aws-amplify/auth
Version:
Auth category of aws-amplify
11 lines (7 loc) • 322 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { signInStore } from '../../../client/utils/store';
export function setActiveSignInUsername(username: string) {
const { dispatch } = signInStore;
dispatch({ type: 'SET_USERNAME', value: username });
}