The two videos on connecting API data were very helpful, but did not go into authentication concerns.
In my example, I want to store the API base URL and authentication credentials in Builder. Is the best way to do this with a data model?
Authentication needs to run to get a token, which is to be passed with each request, in the http header. What is the best place to locate the call to get an auth header? Also, the token expires after 15 mins non usage, so, there needs to be a mechanism to refresh or retrieve a new token.
I want for all of this to happen in the server side, to protect the auth credentials as well as the token.
Any advice is appreciated!