I have been following the twitter clone tutorial on youtube using react-moralis.
However, if I log in as a non-crypto user, I get the following error:
I’ve tried both methods of using “get” and the “user.attributes.username” as shown in the video. Both get me the same error.
The strange thing is, when I refresh the page, everything works normally. It’s like it’s taking me to the authenticated page without finalising authentication. I assume I need to “await” authentication or something but the youtube tutorial doesn’t show this and it works perfectly on the tutorial. Have I missed something?