Solution:
In order to use await, the function directly enclosing it needs to be async.
example codes:
async tryGetUserName() { let session = await Auth.currentSession(); ...... } async should be there, otherwise you will get the error.
Hello everyone! 👋 We are excited to share an update about one of our open-source projects , @qzl/typed-i18n , created by the QZ-L.com team...
No comments:
Post a Comment