Add login and register
This commit is contained in:
@@ -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: '' });
|
||||
}
|
||||
Reference in New Issue
Block a user