Skip to content

A small library, with zero dependencies, for generating cryptographically secure client_id and client_secret for your oauth2 application

License

Notifications You must be signed in to change notification settings

jeremyhamm/oauth2-credentials-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oauth2 Credentials Generator

Description

A small, cryptographically secure library, with zero dependencies, for generating client_id and client_secret for your oauth2 application.

Installation

npm i jeremyhamm/oauth2-credentials-generator

Useage

Client Id

const credentials = require('oauth2-credentials-generator');
const client_id = credentials.clientId();

Client Id with optional name

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');

Client Secret

const credentials = require('oauth2-credentials-generator');
const client_secret = credentials.clientSecret();

About

A small library, with zero dependencies, for generating cryptographically secure client_id and client_secret for your oauth2 application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published