https://github.com/trasherdk/verify-with-nodejs
Sample demonstrating how to use Criipto Verify with Node.js and Express
https://github.com/trasherdk/verify-with-nodejs
Last synced: 4 months ago
JSON representation
Sample demonstrating how to use Criipto Verify with Node.js and Express
- Host: GitHub
- URL: https://github.com/trasherdk/verify-with-nodejs
- Owner: trasherdk
- License: mit
- Created: 2023-01-22T02:20:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T03:22:28.000Z (over 3 years ago)
- Last Synced: 2025-09-07T06:02:10.585Z (9 months ago)
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Criipto Node.js Sample
This is a sample application showing how to configure and enable OpenID Connect middleware to use with Criipto Verify in a Node.js web application with Express, openid-client and Passport.
## Running the sample
Run `npm install` to install all dependencies.
Run `node app.js` to build and start the app.
You can access the app on [http://localhost:3000](http://localhost:3000). Alternatively, you can change the port in `app.js` file.
## Debugging
Default debugging level is `app:log`, meaning it will print all the logs coming from the application itself, but not dependencies. Logging level can be changed or turned off in the `.env` file by setting `DEBUG` environment variable to desired level.
### Enabling openid-client logs
To enable openid-client log, simply append `openid-client:log` value to the `DEBUG` environment variable in `.env` file. For example: `DEBUG=app:log,openid-client:log`.