const bcrypt = require('bcryptjs');
async function hashPasswords() {
// Josef password
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);
// Rugpulllord password
const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š HASHED PASSWORDS - Use in SQL below:');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
console.log('JOSEF Hash:');
console.log(josefHashed);
console.log('\nRUGPULLLORD Hash:');
console.log(rugpullHashed);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š COPY THE SQL BELOW INTO SUPABASE:');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
const sql = `
INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);
`;
console.log(sql);
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
}
hashPasswords().catch(err => {
console.error('Error:', err.message);
process.exit(1);
});
async function hashPasswords() {
// Josef password
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);
// Rugpulllord password
const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š HASHED PASSWORDS - Use in SQL below:');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
console.log('JOSEF Hash:');
console.log(josefHashed);
console.log('\nRUGPULLLORD Hash:');
console.log(rugpullHashed);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š COPY THE SQL BELOW INTO SUPABASE:');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
const sql = `
INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);
`;
console.log(sql);
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
}
hashPasswords().catch(err => {
console.error('Error:', err.message);
process.exit(1);
});
const bcrypt = require('bcryptjs');
async function hashPasswords() {
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);
const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);
console.log('\nā HASHED PASSWORDS GENERATED\n');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š COPY THIS SQL INTO SUPABASE:\n');
const sql = `INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);`;
console.log(sql);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
}
hashPasswords();
async function hashPasswords() {
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);
const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);
console.log('\nā HASHED PASSWORDS GENERATED\n');
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā');
console.log('š COPY THIS SQL INTO SUPABASE:\n');
const sql = `INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);`;
console.log(sql);
console.log('\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
}
hashPasswords();
SELECT email, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada
FROM users
WHERE email IN ('josefkay2@gmail.com', 'rugpulllord@gmail.com');
FROM users
WHERE email IN ('josefkay2@gmail.com', 'rugpulllord@gmail.com');
ALTER TABLE users ADD COLUMN email_verified BOOLEAN DEFAULT FALSE;
Get-ChildItem -Path C:\Users\Samsung\ -Filter server.js -Recurse -File | Select-Object FullName
C:\Users\Samsung\Documents\wallet-exchange\backend> node server.js
ā injected env (5) from .env // tip: ā custom filepath { path: '/custom/path/.env' }
š Checking Supabase credentials...
URL: ā Found
Key: ā Found
ā Supabase client initialized successfully
C:\Users\Samsung\Documents\wallet-exchange\backend\config\email.js:12
const verificationLink = http://localhost:3000/verify-email?token=;
^
SyntaxError: Unexpected token ':'
at wrapSafe (node:internal/modules/cjs/loader:1763:18)
at Module._compile (node:internal/modules/cjs/loader:1804:20)
at Object..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object.<anonymous> (C:\Users\Samsung\Documents\wallet-exchange\backend\routes\auth.js:4:35)
at Module._compile (node:internal/modules/cjs/loader:1830:14)
Node.js v24.15.0
ā injected env (5) from .env // tip: ā custom filepath { path: '/custom/path/.env' }
š Checking Supabase credentials...
URL: ā Found
Key: ā Found
ā Supabase client initialized successfully
C:\Users\Samsung\Documents\wallet-exchange\backend\config\email.js:12
const verificationLink = http://localhost:3000/verify-email?token=;
^
SyntaxError: Unexpected token ':'
at wrapSafe (node:internal/modules/cjs/loader:1763:18)
at Module._compile (node:internal/modules/cjs/loader:1804:20)
at Object..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object.<anonymous> (C:\Users\Samsung\Documents\wallet-exchange\backend\routes\auth.js:4:35)
at Module._compile (node:internal/modules/cjs/loader:1830:14)
Node.js v24.15.0
const verificationLink =
http://localhost:3000/verify-email?token=${verificationToken};ALTER TABLE users ADD COLUMN email_verified BOOLEAN DEFAULT FALSE;
ALTER TABLE users ADD COLUMN verification_token VARCHAR(255);
ALTER TABLE users ADD COLUMN verification_token VARCHAR(255);
SELECT email, email_verified, verification_token FROM users ORDER BY created_at DESC LIMIT 5;