skip to Main Content

AWS AmplifyAUTH: flutter: [ERROR]: CreateAuthChallenge failed with error SyntaxError: await is only valid in async function – Amazon Web Sevices

Getting the captioned error message onTap signUpButton() within AuthenticatorForm(). Seems like a very idiomatic error message, but can't seem to find what's wrong. Here is my createAuthChallenge.js const AWS = require('aws-sdk'); const digitGenerator = require('crypto-secure-random-digit'); function sendSMS(phone, code) { const…

VIEW QUESTION
Back To Top
Search