Integrate Descope Authentication in Svelte with SvelteKit Auth by building a company landing page.
git clone https://github.com/descope-sample-apps/svelte-sample-app.git
npm install
DESCOPE_ID="YOUR_DESCOPE_PROJECT_ID"
DESCOPE_SECRET="YOUR_DESCOPE_ACCESS_KEY"
DISCOVERY_URL="YOUR_DISCOVERY_URL"
ISSUER_URL="YOUR_ISSUER_URL"
AUTH_SECRET="YOUR_AUTH_SECRET"
DESCOPE_ID
: can be found in your Descope's account under the Project pageDESCOPE_SECRET
: can be generated in your Descope's account under the Access Keys pageDISCOVERY_URL
: can be found in your Descope Console under the Applications page and editing the active applicationISSUER_URL
: can be found in your Descope's account under the Applications page and editing the active applicationAUTH_SECRET
: can be generated by the following command in your terminal (do not use the same generated value for both):$ openssl rand -base64 32
Navigate to Descope Project --> Authentication methods --> Identity Provider.
To enable SSO and add Descope as an Identity Provider (IdP), we need to add our flow hosting URL:
https://auth.descope.io/<YOUR_DESCOPE_PROJECT_ID>
To start the application, run:
npm run dev
For any issues or suggestions, feel free to open an issue in the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.