LOG Cannot read property 'sendCustomChallengeAnswer' of null
import { Amplify } from "aws-amplify";
Amplify.configure({
Auth: {
identityPoolId: ,
region: ,
userPoolId:,
userPoolWebClientId: ,
mandatorySignIn: true,
signUpVerificationMethod: "code",
authenticationFlowType: "CUSTOM_AUTH"
},
import { Auth } from "aws-amplify";
async function confirmOTP({ otp }): Promise<boolean> {
console.log(Auth); // Outputs a dictionary
const outcome = Auth.sendCustomChallengeAnswer(session, otp)
Why can I not run Auth.sendCustomChallengeAnswer?