Skip to content

Commit 5236d39

Browse files
committed
Update wordpress.ts
1 parent 79cbe0f commit 5236d39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/next/toolbar-demo/example-app/lib/wordpress.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export async function fetchFromWordPress(endpoint: string, options?: RequestInit
2525
}
2626

2727
export async function getCurrentUser() {
28-
// Fetch real user from WordPress REST API
29-
// Using user ID 1 (default admin user in wp-env)
30-
// In production, use /wp/v2/users/me with Application Passwords or OAuth
28+
// Demo: Using user ID 1 (wp-env default admin) for simplicity
29+
// Production: Use /wp/v2/users/me with Application Passwords or OAuth
30+
// Note: This is acceptable in demos where auth setup would add unnecessary complexity
3131
return fetchFromWordPress('/wp/v2/users/1');
3232
}
3333

0 commit comments

Comments
 (0)