X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fcommon.js;fp=lib%2Fcommon.js;h=ee7831f6b031a08ee559424860ac037235819a8a;hb=69a2f5e7d73dd3f58e07b652c306daa8b253245d;hp=0000000000000000000000000000000000000000;hpb=49cf45515817fbd4479c654d89c8a56c292298bb;p=squeep-resource-authentication-module diff --git a/lib/common.js b/lib/common.js new file mode 100644 index 0000000..ee7831f --- /dev/null +++ b/lib/common.js @@ -0,0 +1,12 @@ +'use strict'; + +const { common } = require('@squeep/api-dingus'); +const b64u = require('@squeep/base64url'); +const { randomBytes } = require('crypto'); +const { promisify } = require('util'); +const randomBytesAsync = promisify(randomBytes); + +module.exports = Object.assign(Object.create(common), { + randomBytesAsync, + ...b64u, +}); \ No newline at end of file