supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions

Home Page:https://supertokens.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: SuperTokens website url nomalisation does not work for electron apps

nkshah2 opened this issue · comments

Summary

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