Open view over modal

I have a mobile app where the user needs to re-login after some time for security reasons. The thing is that the content that was open in the background needs to stay there, and open after the login. So, even if it was a modal. What is the best way to do this. Pushing the login view when a modal is open doesn’t help, since the view is put behind the modal.

Thanks in advance!

Save whatever content was visible in a provider, then snag it back from that provider after logging back in.

Open the loginform as modal too.