import { v5 as uuidv5 } from 'uuid';
import { signUp as cognitoSignUp } from 'aws-amplify/auth';
const getUserIdByEmail = (email: string) => uuidv5(email, usernameID);
const signUp = async ({ email, password }) => {
const response = await cognitoSignUp({
username: getUserIdByEmail(email),
password: password,
options: {
userAttributes: {
email: email
}
}
});
return response;
};