Can't login with the app

One tablet was reinstalled and now I can’t log in to HA.
If I use the nabu casa url I get this:

And if I use the local url the. I get this and it’s stuck here.

When I use the browser then there is no issues using the local url. Before restarting the tablet I could use the nabu casa link, but not anymore.

What do I need to do?