Add login and register

This commit is contained in:
2025-08-04 20:23:19 +02:00
parent 8aa8be7e9f
commit 9320adb6cd
11 changed files with 524 additions and 21 deletions
+20
View File
@@ -0,0 +1,20 @@
import {
adjectives,
animals,
colors,
type Config,
uniqueNamesGenerator
} from 'unique-names-generator';
const nameConfig: Config = {
dictionaries: [adjectives, colors, animals],
separator: ' ',
style: 'capital'
};
export function getRandomName() {
return uniqueNamesGenerator(nameConfig);
}
export function getRandomUsername() {
return uniqueNamesGenerator({ ...nameConfig, separator: '' });
}