Hi, I am stuggling to find how to refresh the session using the header transfer method , by manual...
l
Hi, I am stuggling to find how to refresh the session using the header transfer method , by manually doing XHR Requests to the /auth/ endpoints. It seems the that refreshed token is sent using cookies instead of response headers. Currently I am trying with the following POST: What am I doing wrong?
Copy code
api.post('/auth/session/refresh', 
           null,
           {
             headers: {
               Rid: "session",
               Authorization: "Bearer "+ refreshToken,
               "St-Auth-mode": "header", 
            }
          });
r
hey @luiss you don't need to manually call the refresh API. Our frontend sdk does it on its own
l
I know but I cannot using the frontend sdk for a set of reasons... can you help me anyway?
r
yea, the above should work. If it doesn't please enable backend debug logs and show the output when this API is called
32 Views