WIP token
This commit is contained in:
17
consumerWebsite/functions/generateUUID.js
Normal file
17
consumerWebsite/functions/generateUUID.js
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
const crypto = require('crypto');
|
||||
Calling the UUID method returns a UUID of standard length that you can use in your program.
|
||||
|
||||
let uuid = crypto.randomUUID();
|
||||
console.log(uuid);
|
||||
|
||||
*/
|
||||
const crypto = require('crypto');
|
||||
|
||||
|
||||
async function generateUUID() {
|
||||
let uuid = crypto.randomUUID();
|
||||
return uuid;
|
||||
}
|
||||
|
||||
module.exports = { generateUUID };
|
Reference in New Issue
Block a user