
This sample app is an open-source sample app, built with React and Remix. This app uses Remix-Auth and the OAuth 2.0 standard to utilize Descope authentication. This project also showcases how to store and display user information with a Prisma DB.
- Descope Login: Users can login with their Descope credentials.
- User Dashboard: After logging in, users are redirected to a dashboard which displays the information of the logged in user.
- Clone the repository:
git clone https://github.com/descope-sample-apps/remix-oauth2-sample-app.git
- Install dependencies:
npm install
- Setup environment variables:
Use the .env.example
file in the repo, and change the name to .env
. Then, fill in the following variables with your own information:
-
Client ID - This will be your Descope Project ID, which you can find under Project Settings, in the console.
-
Client Secret - A Descope Access Key you can generate under Access Keys, in the console.
-
Local Callback URL - If you're testing with localhost, it'll be something like
http://localhost:3000/auth/callback
.
To start the application, run:
npm run dev
Navigate to http://localhost:3000/
in your browser.
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.