https://github.com/fabe/micro-verifier-challenge
A tiny Node.js microservice to generate a cryptographically-random `verifier` and `challenge`.
https://github.com/fabe/micro-verifier-challenge
Last synced: about 1 month ago
JSON representation
A tiny Node.js microservice to generate a cryptographically-random `verifier` and `challenge`.
- Host: GitHub
- URL: https://github.com/fabe/micro-verifier-challenge
- Owner: fabe
- License: mit
- Created: 2019-02-22T12:38:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T23:32:01.000Z (over 2 years ago)
- Last Synced: 2025-02-08T03:46:44.030Z (3 months ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `micro-verifier-challenge`
A tiny Node.js microservice to generate a cryptographically-random `verifier` and `challenge` (for React Native authentication flows).
This can help if you are required to follow the [Auth0 Authorization Code Grant Flow with PKCE](https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce) with Expo/React Native (as Node.js' `crypto` module is not available in RN).
## Deployment
[](https://deploy.now.sh/?repo=https://github.com/fabe/micro-verifier-challenge)
## Usage
```sh
GET https://your-url.now.sh/
```You will get the data in the following format:
```JSON
{
"verifier": "MAIYIPi-3BJWxzaV1cXPZGnfMZdgbWuwxThvUdmFHQE",
"challenge": "eWbxKj7OZAr8RDaGSHN_bWvxpDBrS30lGW53DHzuUT8"
}
```Keep in mind that this process is a compromise and should usually be handled locally. It's *probably* secure enough, but keep in mind that this microservice should **only be accessed through HTTPS**.
## Development
```sh
git clone [email protected]:fabe/micro-verifier-challenge.git
yarn
yarn dev
```The server will be listening at `localhost:3000`.
## Authors
- Fabian Schultz ([@fschultz_](https://twitter.com/fschultz_))