How to use firebase auth with redirect

Hi guys,
I’m trying to make application using firebase auth with redirect authentication. But I have a problem with handling after auth redirect. I get stuck on login page and it doesn’t actually log user in.

Could you please look what am I doing wrong? Thanks