colossal-appointment-48082
06/21/2023, 8:23 PMlocalstore.setItem('DSR', refreshToken)
in the UI.
this works however it is a bit brittle if y'all ever change your cookie name.
so my request is can you export this constant https://github.com/descope/descope-js/blob/09134f7bd9e4fa61862af1f041d0df0e1e7f1a6e/packages/web-js-sdk/src/enhancers/withPersistTokens/constants.ts#LL4C8-L4C8
or even better have a setRefreshToken method in your react-sdkgreat-diamond-35515
06/21/2023, 8:48 PM@descope/node-sdk
(RefreshTokenCookieName
- see in link)
though this is not an official commitment - noting that this DS/DSR naming is not likely to change in the near future 🙂colossal-appointment-48082
06/21/2023, 8:52 PM@descope/react-sdk
in the frontend and @descope/node-sdk
in the backend. and ohhh interesting. I was nervous adding a node package in the browser but i'll check it out!great-diamond-35515
06/21/2023, 9:03 PMcolossal-appointment-48082
06/21/2023, 9:04 PM