I remember seeing in the docs that you could have code, such as authentication, be run only when the app first loads. Unfortunately for me I cannot find it again despite looking.
In my case, I want to fetch user details, such as name, without having to make an API call every time I request the information.