I have gone through “Authenticating Svelte Applications” in blogs. I set up an auth0 account and it works.
My setup is a linux VM running on a windows host. I have changed package.json so that it is available from the host browser as well as localhost.
If I set callback_url’s etc to localhost:5000 then it works with localhost but from the PC, I get
Uncaught (in promise) Error:
auth0-spa-js must run on a secure origin.
when I try to login.
If I set callback_urls etc to VM_name:5000 then locally I get
Callback URL mismatch.
The provided redirect_uri is not in the list of allowed callback URLs.
What am I doing wrong? (I would have raised this on the blog discssion but that was closed after 28 days)