initial commit
[squeep-resource-authentication-module] / lib / common.js
diff --git a/lib/common.js b/lib/common.js
new file mode 100644 (file)
index 0000000..ee7831f
--- /dev/null
@@ -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