And different question regarding `DS / DSR` cooki...
# ask-a-descoper
i
And different question regarding
DS / DSR
cookies, currently we have the following domains scheme
app.dev.domain.com
and
app.domain.com
both of those environments have their own project in descope with different auth cnames into descope the cookie scope for dev is
*.dev.domain.com
and for prod is
*.domain.com
and the result is that two values of
DS
cookie are passed to our backend resulting that dev environment is sort of broken when being authenticated to both..... that leads me to the question for how to mitigate this scenario, is there away to use different cookie name or other best practice to handle this?
r
you can use a different cookie name as you mentioned if that helps you, just click on the
end
task and change it:
i
So thats being set by the Flow only?
r
yes. we don't have a project config for that.
i
Refresh by default is DSR and session is DS right?
r
exactly
i
For my scenario i must change both right?
r
If you are using the refresh token in the backend i believe so