The logged-in username and profile aren't displayed

Hello everyone!

I have integrated a Firebase Google authentication into my website. But the username and profile pic aren’t displayed on the redirected page. I think my code is incorrect. Can anyone look at the code please, what might be the issue?

I’m sharing the sample project. There are two login pages and two different pages that the users are redirected to after login.

And also I have a question, here I use one Firebase project and added the script to both login pages and just changed the login button’s id and redirecting pages. But what if I want to record logged-in users from each page separately? Can I use two Firebase projects and implement them in each login pages?

Thank you!

Here is my site Read-Only: LINK
(how to share your site Read-Only link)