Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floydjones1/expresstscognito
https://github.com/floydjones1/expresstscognito
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/floydjones1/expresstscognito
- Owner: floydjones1
- Created: 2020-07-21T01:01:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T05:04:30.000Z (over 4 years ago)
- Last Synced: 2023-03-03T13:32:35.048Z (almost 2 years ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 32
- Watchers: 0
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExpressTSCognito
A backend server configured to point to cognito for authentication
Please follow this video for more information: https://www.youtube.com/watch?v=AQfA7OQEMqg# Getting started
1. npm install
2. modify cognito variables in `src/services/cognito.service.ts`
3. modify cognito variables in `src/middleware/auth.middleware.ts`## Available endpoints
#### 1. auth/signup
Registers a new user and sends a verification code to email/phone number
#### 2. auth/signin
Takes registered username and password and returns secure jwt tokens
#### 3. auth/verify
Takes a username and code to verify registered account#### 4. auth/forgot-password
Intiates a forgot password workflow
#### 5. auth/confirm-password
Confirms that old password has changed