Looking for help in how to set up the code for fetch (in the backend) where the site I’m accessing with a GET has a timed-out authorization – the cookie expires every 2 hours. I can’t keep the cookie in the Secrets Manager, because each call will get a new one.
I am in the beginning of setting this up and am looking for references or tutorials.
Here is the info I have on Authorization:
"The public site API enforces authentication for all API calls. There are two methods a consumer of the API can choose from to authenticate their call. The first method uses the traditional cookie approach. This method is very similar to how a normal website controls authentication, whereby upon successful authentication, a cookie is returned and each subsequent request the cookie is sent. The other method of authentication supported by the API is a custom header/value pair. With this method the caller adds to their request header the issued token set against the header key of sb-auth-token
.