Giter Club home page Giter Club logo

react-oauth-tutorial's Introduction

React OAuth Tutorial with Descope

OAuth Authentication This project is a simple React application that demonstrates OAuth authentication using Descope. It uses Vite as a build tool and React Router for routing. The application has two main components: Login and Secure. The Login component is responsible for the authentication process using Descope, while the Secure component displays user details fetched from Descope's OAuth API.

Cloning the Project

To clone this project, you need to have Git installed on your machine. You can clone the project using the following command:

git clone https://github.com/nemo0/react-oauth-tutorial.git

Required Keys

This application requires an access token from Descope's OAuth API to fetch user details.

Running the Application

Before running the application, make sure you have Node.js and npm installed on your machine. After cloning the project, navigate to the project directory and install the dependencies using the following command:

npm install

You can then start the development server using:

npm run dev

To build the application for production, use:

npm run build

Project Structure

The main application entry point is src/main.jsx, which renders the App component from src/App.jsx. The App component sets up the router and routes for the application. The Login and Secure components are located in the src/components directory. The application's styles are defined in src/App.css.

The project configuration for Vite is located in vite.config.js, and the package dependencies and scripts are defined in package.json. The index.html file is the HTML template for the application.

For more information about the project setup and configuration, refer to the official documentation of the used libraries and tools.

react-oauth-tutorial's People

Contributors

nemo0 avatar

Stargazers

Austin Kong avatar

Watchers

 avatar  avatar

Forkers

hariganeshraju

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.