A small, cryptographically secure library, with zero dependencies, for generating client_id and client_secret for your oauth2 application.
npm i jeremyhamm/oauth2-credentials-generator
const credentials = require('oauth2-credentials-generator');
const client_id = credentials.clientId();
This will append name + _
to the returned client id. Useful if creating client ids for multiple clients.
const credentials = require('oauth2-credentials-generator');
const client_id = credentials.clientId('name');
const credentials = require('oauth2-credentials-generator');
const client_secret = credentials.clientSecret();