mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 18:21:28 +10:00
- fixes #2153, attempt to fix 401 unauthorized error when implementing OIDC
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import type { Config as UniqueNamesConfig } from "unique-names-generator";
|
||||
import { adjectives, animals, uniqueNamesGenerator } from "unique-names-generator";
|
||||
|
||||
import type { LayoutLocator, SortablePayload } from "./types";
|
||||
@ -30,12 +31,13 @@ export const extractUrl = (string: string) => {
|
||||
return result ? result[0] : null;
|
||||
};
|
||||
|
||||
export const generateRandomName = () => {
|
||||
export const generateRandomName = (options?: Omit<UniqueNamesConfig, "dictionaries">) => {
|
||||
return uniqueNamesGenerator({
|
||||
dictionaries: [adjectives, adjectives, animals],
|
||||
style: "capital",
|
||||
separator: " ",
|
||||
length: 3,
|
||||
...options,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user