Last active
April 5, 2017 17:08
-
-
Save bjrmatos/c910b5c16a66d74f04c9af382d6140a2 to your computer and use it in GitHub Desktop.
script to generate consumer id and secrets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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