Hello, We have created a PR to add the `storage-pr...
# ask-a-descoper
k
Hello, We have created a PR to add the
storage-prefix
attribute on the descope web component to the react sdk. We need to use this attribute in our apps because we have multiple apps deployed to the same domain. The apps should have their own session and refresh token, but currently the token is shared across the apps. Is someone available to review and provide feedback? https://github.com/descope/descope-js/pull/1216
c
@Asaf Shen @Nir Gur Arie
a
already reviewed we appreciate the contribution! to be honest, I'm not sure what this is the proper solution, we may want to have the project id as a prefix for inputs so the developer won't have to worry about this
n
We also have a meeting about another related issue in about an hour We can raise it there
👍 1
k
Thank you for the review we are addressing your comments now. Could the project id be a default prefix but if we need to override that for any reason we can use the
storage-prefix
? We have two of our environments connected to one project, so I can see where we would still need to add a prefix for each env we have.
a
two envs, working with one project,t on the same domain and have different storage? what is the use case of this? also see a lot of things that could go wrong in this approach
k
No two envs to one project. Each env has its own domain, but mulitple applications can exist on an env domain. We want to use our applicationIds as the prefix for the tokens.
@Asaf Shen We have updated the PR to update the web components. Is there a final decision on approach for this feature? Also do you still have concerns with our setup?
a
We went for a different approach - the ability to customize local storage: https://github.com/descope/descope-js/pull/1219
k
Ok awesome thank you! That should suit our needs. We will testing things out from the
0.0.0-next-b22667bf-20250921
release. Any estimate on when this will be published to
latest
?