You are using post function in js, which is not implemented in AI2.
In this case,You need to use Web componnet to get your user info. Search the forum for an solution, esp from @TIMAI2 , he is expert on this.
or read this:
Firebase with Web Component - Tutorials and Guides - MIT App Inventor Community