supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

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

Closed nkshah2 closed 2 years ago

nkshah2 commented 2 years ago

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

nkshah2 commented 2 years ago