legends810 commited on
Commit
b9b45a8
·
verified ·
1 Parent(s): e18955d

Update lib/auth.ts

Browse files
Files changed (1) hide show
  1. lib/auth.ts +4 -3
lib/auth.ts CHANGED
@@ -8,10 +8,11 @@ export const isAuthenticated = async (): Promise<UserResponse | NextResponse<unk
8
  // Create a mock user object that will be returned for every request.
9
  // This bypasses the need for actual authentication.
10
  const mockUser: UserResponse = {
11
- id: "mock_user_123", // A fake user ID
12
- name: "RaBU-User", // A default username
13
- fullname: "RaBU-2 User", // A default full name
14
  avatarUrl: "/default-avatar.png", // A path to a default avatar if you have one
 
15
  token: "mock_token_abcdef123456" // A fake token
16
  };
17
 
 
8
  // Create a mock user object that will be returned for every request.
9
  // This bypasses the need for actual authentication.
10
  const mockUser: UserResponse = {
11
+ id: "mock_user_123", // A fake user ID
12
+ name: "RaBU-User", // A default username
13
+ fullname: "RaBU-2 User", // A default full name
14
  avatarUrl: "/default-avatar.png", // A path to a default avatar if you have one
15
+ isPro: false, // Add the missing 'isPro' property
16
  token: "mock_token_abcdef123456" // A fake token
17
  };
18