diff --git a/src/services/auth.services.js b/src/services/auth.services.js index b2dc8d0..20054ad 100644 --- a/src/services/auth.services.js +++ b/src/services/auth.services.js @@ -5,7 +5,7 @@ const mail = require('../services/mail.services') const clean = require('../utils/sanitizer.utils') const domList= require('../configs/domains.configs') -async function createRegKey(eml){ +async function createRegKey(eml){ // Needs moving to register.services const domain = clean.splitDomain(eml) if (domain in domList.valid) { // Don't know if this is correct const uuid = util.generateKey(); diff --git a/src/utils/auth.utils.js b/src/utils/auth.utils.js index 72e3145..37a0d14 100644 --- a/src/utils/auth.utils.js +++ b/src/utils/auth.utils.js @@ -15,7 +15,7 @@ async function isAuthed(key) { // Needs testing } // Creates an API key for a user -async function generateKey() { // Needs testing +async function generateKey() { // Needs testing & moving to 'register.utils' return crypto.randomUUID() };