Skip to content

Instantly share code, notes, and snippets.

@bjrmatos
Last active April 5, 2017 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjrmatos/c910b5c16a66d74f04c9af382d6140a2 to your computer and use it in GitHub Desktop.
Save bjrmatos/c910b5c16a66d74f04c9af382d6140a2 to your computer and use it in GitHub Desktop.
script to generate consumer id and secrets
'use strict';
var uuid = require('uuid'),
base64Url = require('base64-url'),
uuidBase62 = require('uuid-base62');
var consumer = {
key: uuidBase62.encode(uuid.v4()),
secret: base64Url.encode(uuid.v4().replace(/-/g, '')),
seed: uuid.v1().replace(/-/g, '')
};
console.log(consumer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment