How to get to a next page after successful authentication

I’m trying to authenticate my app with facebook and google using firebase but after successful authentication
I still remain on the same page but shows successful authentication on console log
My authentication code is


and output page is