File tree Expand file tree Collapse file tree 1 file changed +56
-1
lines changed Expand file tree Collapse file tree 1 file changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,68 @@ interface AuthState {
7
7
8
8
export const useAuthStore = create < AuthState > ( ( /*set, get*/ ) => ( {
9
9
user : {
10
- name : import . meta . env . VITE_AUTH_DISABLED_PROFILE_NAME ,
10
+ name : getRandomName ( ) ,
11
11
nickname : import . meta. env . VITE_AUTH_DISABLED_NICKNAME ,
12
12
sub : import . meta. env . VITE_AUTH_DISABLED_SUB ,
13
13
} ,
14
14
accessToken : import . meta. env . VITE_AUTH_DISABLED_ACCESS_TOKEN ,
15
15
} ) ) ;
16
16
17
+ function getRandomName ( ) {
18
+ const NAMES = [
19
+ 'Alex' ,
20
+ 'Angel' ,
21
+ 'Arden' ,
22
+ 'Ari' ,
23
+ 'Aspen' ,
24
+ 'August' ,
25
+ 'Avery' ,
26
+ 'Baylor' ,
27
+ 'Billie' ,
28
+ 'Blair' ,
29
+ 'Blake' ,
30
+ 'Blake' ,
31
+ 'Cameron' ,
32
+ 'Casey' ,
33
+ 'Charlie' ,
34
+ 'Dakota' ,
35
+ 'Devon' ,
36
+ 'Drew' ,
37
+ 'Ellis' ,
38
+ 'Frankie' ,
39
+ 'Grey' ,
40
+ 'Harley' ,
41
+ 'Indigo' ,
42
+ 'Jamie' ,
43
+ 'Jesse' ,
44
+ 'Jordan' ,
45
+ 'Justice' ,
46
+ 'Kai' ,
47
+ 'London' ,
48
+ 'Micah' ,
49
+ 'Morgan' ,
50
+ 'Parker' ,
51
+ 'Phoenix' ,
52
+ 'Quinn' ,
53
+ 'Reese' ,
54
+ 'Remy' ,
55
+ 'Riley' ,
56
+ 'River' ,
57
+ 'Rowan' ,
58
+ 'Sage' ,
59
+ 'Sam' ,
60
+ 'Sasha' ,
61
+ 'Skyler' ,
62
+ 'Spencer' ,
63
+ 'Sydney' ,
64
+ 'Tatum' ,
65
+ 'Taylor' ,
66
+ 'Winter' ,
67
+ ] ;
68
+ const randomIndex = Math . floor ( Math . random ( ) * NAMES . length ) ;
69
+ return NAMES [ randomIndex ] ;
70
+ }
71
+
17
72
export type AuthenticatedUser = {
18
73
name : string ;
19
74
nickname : string ;
You can’t perform that action at this time.
0 commit comments