The act of obtaining an access token and using it to retrieve data are separate…
Once you’ve used your login credentials to retrieve an access token, you persist it in some way. It will stay valid until the user revokes it.
Then when you’re going to retrieve data, you use the access token you’ve already negotiated instead of re-negotiating it again and again and again.