https://github.com/authgear/authgear-example-express
https://github.com/authgear/authgear-example-express
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/authgear/authgear-example-express
- Owner: authgear
- Created: 2023-08-15T22:31:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T14:54:37.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T08:21:38.792Z (over 1 year ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An Example App For Adding User Authentication to Express with Authgear as the Identity Provider.
## What is Authgear?
Authgear is a secure authentication and user management platform. It uses OpenID Connect (OIDC) and OAuth 2.0 to identify who a user is and grant authorization to protected resources.
This example app uses Express JavaScript to create a simple web app that allows users to log in to their accounts and displays user info.
## How to Run the Project
Before you run this project on your local machine, sign up for a free Authgear account, create an Authgear app, and add the configuration to the app.js in the Express project.
For a more detailed step-by-step guild on how to use Authgear with Express, check out this post:
[https://docs.authgear.com/get-started/regular-web-app](https://docs.authgear.com/get-started/regular-web-app)
### Fill in the enviroment variables
Create `.env` file according to `.env_template` and fill in the configuration with info obtained from the Authgear Portal.
### Install dependency
```
npm install
```
### Start the server
```
npm run dev
```