When using supertokens-website with Electron and running in production mode, supertokens-website throws an error Error: Please provide a valid domain name.
This is because in production mode electron return an empty string for window.location.origin which the SDK relies on.
Expected behaviour
supertokens-website should not throw an error when using with Electron
Another issue is that when using React, changes in location query does not trigger a page reload if the UR+ path has not changed. To solve this, we need to have a function that is internally called by the SDK to update location query that triggers a full page reload for electron apps
Summary
When using
supertokens-website
with Electron and running in production mode,supertokens-website
throws an errorError: Please provide a valid domain name
.This is because in production mode electron return an empty string for
window.location.origin
which the SDK relies on.Expected behaviour
supertokens-website
should not throw an error when using with Electron