An open API service indexing awesome lists of open source software.

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

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`.